diff --git a/src/mainwindow-dtk.cpp b/src/mainwindow-dtk.cpp index c5f328b..1341d9d 100755 --- a/src/mainwindow-dtk.cpp +++ b/src/mainwindow-dtk.cpp @@ -511,9 +511,13 @@ void MainWindow::notify(QObject *receiver, QEvent *event) void MainWindow::on_pushButton_14_clicked() { + /** + * NOTE: No need to judget developmode status + */ // Check UOS - QSettings config(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/config.ini", QSettings::IniFormat); - if (config.contains("UOS/EnableDeveloperMode") && !config.value("UOS/EnableDeveloperMode").toBool()) + // QSettings config(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/config.ini", QSettings::IniFormat); + // if (config.contains("UOS/EnableDeveloperMode") && !config.value("UOS/EnableDeveloperMode").toBool()) + if (false) { qDebug() << "UOS Developer Mode has not been enabled!"; QtConcurrent::run([=] diff --git a/src/pages/appintopage.cpp b/src/pages/appintopage.cpp index bbc476a..2d4fdd3 100644 --- a/src/pages/appintopage.cpp +++ b/src/pages/appintopage.cpp @@ -119,9 +119,13 @@ void AppIntoPage::openUrl(const QUrl &url) } + /** + * NOTE: No need to judget developmode status + */ // Check UOS - QSettings config(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/config.ini", QSettings::IniFormat); - if (config.contains("UOS/EnableDeveloperMode") && !config.value("UOS/EnableDeveloperMode").toBool()){ + // QSettings config(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/config.ini", QSettings::IniFormat); + // if (config.contains("UOS/EnableDeveloperMode") && !config.value("UOS/EnableDeveloperMode").toBool()){ + if (false) { qDebug() << "UOS Developer Mode has not been enabled!"; ui->downloadButton->setText(tr("Developer Mode Disabled")); ui->downloadButton->setEnabled(false);