Do not change launcher settings when currently running instance selected in wizard
The currently running instance might be from the launcher itself as the wizard might have been started after configuring the launcher manually. So let's just not mess with the launcher settings at all in this case.
This commit is contained in:
parent
b6df8be85a
commit
2dffb7ac97
|
@ -151,8 +151,10 @@ bool Wizard::changeSettings()
|
|||
}
|
||||
|
||||
// enable/disable integrations accordingly
|
||||
settings.launcher.considerForReconnect = settings.launcher.showButton = settings.launcher.autostartEnabled
|
||||
= (mainConfig() == MainConfiguration::LauncherExternal || mainConfig() == MainConfiguration::LauncherBuiltIn);
|
||||
if (mainConfig() != MainConfiguration::CurrentlyRunning) {
|
||||
settings.launcher.considerForReconnect = settings.launcher.showButton = settings.launcher.autostartEnabled
|
||||
= (mainConfig() == MainConfiguration::LauncherExternal || mainConfig() == MainConfiguration::LauncherBuiltIn);
|
||||
}
|
||||
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
|
||||
settings.systemd.considerForReconnect = settings.systemd.showButton = extraConfig() & ExtraConfiguration::SystemdIntegration;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue