Explorar o código

changing behaviour in mainwindow to open argdialog if config is set to

logicp %!s(int64=5) %!d(string=hai) anos
pai
achega
edd1abf73c
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      src/mainwindow.cpp

+ 2 - 5
src/mainwindow.cpp

@@ -252,11 +252,8 @@ void MainWindow::updateMessages(int t, const QString& message, StringVec v) {
     }
     }
     if (message == "New Session") {
     if (message == "New Session") {
       ui->led->setState(true);
       ui->led->setState(true);
-      if (auto it{m_config.find("schedulerMode")}; it != std::end(m_config)) {
-        bool scheduler_mode = bool{it->second == "true"};
-        if (configBoolValue("true", std::ref(m_config))) {
-          arg_ui->show();
-        }
+      if (configBoolValue("schedulerMode", std::ref(m_config))) {
+        arg_ui->show();
       }
       }
     }
     }
   } else if (t == PROCESS_REQUEST_TYPE) {
   } else if (t == PROCESS_REQUEST_TYPE) {