From a0fdca7ea69751f16dce84ff668ae6582d95864d Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Sun, 21 Jul 2024 23:51:50 -0400 Subject: [PATCH] fix(app): do not register protocol handlers on startup --- src/app/main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 765bfe3..4071281 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -205,17 +205,18 @@ int main(int argc, char *argv[]) #ifdef Q_OS_WIN32 const static QHash 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