mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
GODT-2010: add Cocoa app delegate handler for second application instance.
This commit is contained in:
@ -30,9 +30,16 @@
|
||||
#include <project_sentry_config.h>
|
||||
|
||||
|
||||
using namespace bridgepp;
|
||||
#ifdef Q_OS_MACOS
|
||||
|
||||
|
||||
#include "MacOS/SecondInstance.h"
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
using namespace bridgepp;
|
||||
|
||||
namespace {
|
||||
|
||||
/// \brief The file extension for the bridge executable file.
|
||||
@ -320,6 +327,7 @@ int main(int argc, char *argv[]) {
|
||||
CommandLineOptions const cliOptions = parseCommandLine(argc, argv);
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
registerSecondInstanceHandler();
|
||||
setDockIconVisibleState(!cliOptions.noWindow);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user