Set launch-on-startup when the first account is set up

The previous code would disable it when the second account was
configured.

See #6347
This commit is contained in:
Christian Kamm 2018-02-20 11:03:46 +01:00 committed by Markus Goetz
parent 888818a9f7
commit 33306dcc38

View File

@ -338,7 +338,9 @@ void Application::slotownCloudWizardDone(int res)
shouldSetAutoStart = shouldSetAutoStart
&& QCoreApplication::applicationDirPath().startsWith("/Applications/");
#endif
Utility::setLaunchOnStartup(_theme->appName(), _theme->appNameGUI(), shouldSetAutoStart);
if (shouldSetAutoStart) {
Utility::setLaunchOnStartup(_theme->appName(), _theme->appNameGUI(), true);
}
_gui->slotShowSettings();
}