Explorar o código

Fixed theming switch

Felix %!s(int64=4) %!d(string=hai) anos
pai
achega
f2567fe0fb
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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");