Skip to content

Commit

Permalink
fix(app): do not register protocol handlers on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Aug 5, 2024
1 parent 1eb6548 commit a0fdca7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,18 @@ int main(int argc, char *argv[])

#ifdef Q_OS_WIN32
const static QHash<QString, QString> protocols = {
{QStringLiteral("dash"), QStringLiteral("Dash Protocol")},
{QStringLiteral("dash-plugin"), QStringLiteral("Dash Plugin Protocol")}
{QStringLiteral("dash"), QStringLiteral("URL:Dash Protocol (Zeal)")},
{QStringLiteral("dash-plugin"), QStringLiteral("URL:Dash Plugin Protocol (Zeal)")}
};

if (clParams.registerProtocolHandlers) {
registerProtocolHandlers(protocols, clParams.registerProtocolHandlers);
return EXIT_SUCCESS;
}

if (clParams.unregisterProtocolHandlers) {
unregisterProtocolHandlers(protocols);
return EXIT_SUCCESS;
} else {
registerProtocolHandlers(protocols, clParams.registerProtocolHandlers);
if (clParams.registerProtocolHandlers)
return EXIT_SUCCESS;
}
#endif

Expand Down

0 comments on commit a0fdca7

Please sign in to comment.