From 33306dcc381550b451c8591c658dfe4af1bd7318 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 20 Feb 2018 11:03:46 +0100 Subject: [PATCH] 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 --- src/gui/application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 934e23ecb1..a6df9b1a96 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -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(); }