diff --git a/Settings.c b/Settings.c index f9a58e37..e2c94e2b 100644 --- a/Settings.c +++ b/Settings.c @@ -838,8 +838,8 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicMeters, H #endif this->changed = false; this->delay = DEFAULT_DELAY; - bool ok = false; - if (legacyDotfile) { + bool ok = Settings_read(this, this->filename, initialCpuCount); + if (!ok && legacyDotfile) { ok = Settings_read(this, legacyDotfile, initialCpuCount); if (ok) { // Transition to new location and delete old configuration file @@ -849,9 +849,6 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicMeters, H } free(legacyDotfile); } - if (!ok) { - ok = Settings_read(this, this->filename, initialCpuCount); - } if (!ok) { this->screenTabs = true; this->changed = true;