From c29d3e2fd31341d9262268aad6483545962b9a5d Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 24 Mar 2014 15:13:47 +0000 Subject: [PATCH] moved tray hide notification to before starting --- src/gui/src/MainWindow.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 7a169d7a..ce1f1f55 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -451,6 +451,14 @@ void MainWindow::startSynergy() if (desktopMode) { + if (!appConfig().startedBefore()) { + QMessageBox::information( + this, "Synergy", + tr("Synergy will be minimized to the notification " + "area. This will happen automatically when Synergy " + "starts.")); + } + synergyProcess()->start(app, args); if (!synergyProcess()->waitForStarted()) { @@ -466,16 +474,6 @@ void MainWindow::startSynergy() QString command(app + " " + args.join(" ")); m_IpcClient.sendCommand(command, m_ElevateProcess); } - else { - - if (!appConfig().startedBefore()) { - QMessageBox::information( - this, "Synergy", - tr("Synergy has been minimized to the notification " - "area. This happens automatically when Synergy " - "starts.")); - } - } appConfig().setStartedBefore(true); appConfig().saveSettings();