moved tray hide notification to before starting
This commit is contained in:
parent
a22edc9048
commit
c29d3e2fd3
|
@ -451,6 +451,14 @@ void MainWindow::startSynergy()
|
||||||
|
|
||||||
if (desktopMode)
|
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);
|
synergyProcess()->start(app, args);
|
||||||
if (!synergyProcess()->waitForStarted())
|
if (!synergyProcess()->waitForStarted())
|
||||||
{
|
{
|
||||||
|
@ -466,16 +474,6 @@ void MainWindow::startSynergy()
|
||||||
QString command(app + " " + args.join(" "));
|
QString command(app + " " + args.join(" "));
|
||||||
m_IpcClient.sendCommand(command, m_ElevateProcess);
|
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().setStartedBefore(true);
|
||||||
appConfig().saveSettings();
|
appConfig().saveSettings();
|
||||||
|
|
Loading…
Reference in New Issue