From 321a8ea1f1dc30123f5c3673a5dd86007cc5cc23 Mon Sep 17 00:00:00 2001 From: dorian Date: Wed, 13 Mar 2019 20:11:31 +0100 Subject: [PATCH] - the light theme is now automatically written sot the settings file to prevent having to switch the dark mode on and off two times at the first time --- sources/appsettings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/appsettings.cpp b/sources/appsettings.cpp index ed670fc..99e42a5 100644 --- a/sources/appsettings.cpp +++ b/sources/appsettings.cpp @@ -38,6 +38,9 @@ AppSettings::AppSettings(QObject* parent) if(loadSetting("grade") == "false"){ this->writeSetting("grade", 5); } + if(loadSetting("theme") == "false"){ + this->writeSetting("theme", "Light"); + } this->filtersFile = new QFile(path + "/fannyapp/filters.json"); }