Commit a90eeb04 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham

do not mishandle the force file system option

fix configuration class used by the configuration dialog to not forget
the correct value for the option

clean uneeded overwrite of default value handling in the configuration
file (no need to do it by code just use KConfig)

BUG: 424901
parent 155fe080
Pipeline #44227 passed with stage
in 25 seconds
......@@ -24,7 +24,6 @@ ElisaConfigurationDialog::ElisaConfigurationDialog(QObject* parent)
this, &ElisaConfigurationDialog::configChanged);
configChanged();
save();
mConfigFileWatcher.addPath(Elisa::ElisaConfiguration::self()->config()->name());
}
......@@ -200,6 +199,7 @@ void ElisaConfigurationDialog::configChanged()
setShowSystemTrayIcon(Elisa::ElisaConfiguration::showSystemTrayIcon());
setPlayAtStartup(Elisa::ElisaConfiguration::playAtStartup());
setColorScheme(Elisa::ElisaConfiguration::colorScheme());
setForceUsageOfFastFileSearch(Elisa::ElisaConfiguration::forceUsageOfFastFileSearch());
switch (Elisa::ElisaConfiguration::embeddedView())
{
......
......@@ -217,9 +217,6 @@ auto MusicListenersManager::initializeRootPath()
}
Elisa::ElisaConfiguration::setRootPath(initialRootPath);
Elisa::ElisaConfiguration::setShowProgressOnTaskBar(true);
Elisa::ElisaConfiguration::setShowSystemTrayIcon(false);
Elisa::ElisaConfiguration::setForceUsageOfFastFileSearch(true);
Elisa::ElisaConfiguration::self()->save();
return initialRootPath;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment