moved tray hide notification to before starting

This commit is contained in:
Nick Bolton 2014-03-24 15:13:47 +00:00
parent a22edc9048
commit c29d3e2fd3
1 changed files with 8 additions and 10 deletions

View File

@ -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();