mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 19:12:14 +03:00
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 (!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();
|
||||
|
Loading…
Reference in New Issue
Block a user