mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
parent
888818a9f7
commit
33306dcc38
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user