mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-06-07 23:45:58 +08:00
fix: #IAEC2O developmode status judgment error in part of UOS 1060 iso
after entering developmode, /var/lib/deepin/developer-mode/enabled is not created or its content is not '1' Log: remove developmode judgment temporarily
This commit is contained in:
parent
874ffd5822
commit
b7bc8008f3
@ -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([=]
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user