mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix the logic generating the config file
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
85a2020982
commit
d2cd4efaaa
@ -332,13 +332,25 @@ Application::Application(int &argc, char **argv)
|
||||
ConfigFile cfg;
|
||||
|
||||
{
|
||||
auto shouldExit = false;
|
||||
|
||||
// these config values will always be empty after the first client run
|
||||
if (!_overrideServerUrl.isEmpty()) {
|
||||
cfg.setOverrideServerUrl(_overrideServerUrl);
|
||||
cfg.setOverrideServerUrl(_overrideServerUrl);
|
||||
shouldExit = true;
|
||||
}
|
||||
|
||||
if (!_overrideLocalDir.isEmpty()) {
|
||||
cfg.setOverrideLocalDir(_overrideLocalDir);
|
||||
shouldExit = true;
|
||||
}
|
||||
|
||||
if (AccountSetupCommandLineManager::instance()) {
|
||||
cfg.setVfsEnabled(AccountSetupCommandLineManager::instance()->isVfsEnabled());
|
||||
}
|
||||
|
||||
if (shouldExit) {
|
||||
std::exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user