Browse Source

Fixed theming switch

Felix 4 years ago
parent
commit
f2567fe0fb
1 changed files with 1 additions and 3 deletions
  1. 1 3
      main.cpp

+ 1 - 3
main.cpp

@@ -57,9 +57,7 @@ int main(int argc, char *argv[])
     }
 
     //Theming
-    int selectedtheme = ASettings::settings().value("main/theme").toInt();
-    QDir::setCurrent("/themes");
-    switch (2) {
+    switch (ASettings::read("main/theme").toInt()) {
     case 1:{
         DEB << "main :: Loading light theme";
         QFile file(":light.qss");