mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
Don't show JSON parsing error if no apps are installed
This commit is contained in:
parent
525cfac383
commit
7a0230d1ae
1 changed files with 12 additions and 3 deletions
15
apps.cpp
15
apps.cpp
|
@ -359,10 +359,19 @@ void apps::showUserApps(bool showDisabledJson)
|
|||
}
|
||||
}
|
||||
else {
|
||||
QString function = __func__; log(function + ": Main user applications' JSON file is invalid", className);
|
||||
QTimer::singleShot(500, this, SLOT(showFailedToParseMainUserAppsJsonFile()));
|
||||
if(QFile::exists("/mnt/onboard/onboard/.apps/apps.json")) {
|
||||
QString function = __func__; log(function + ": Main user applications' JSON file is invalid", className);
|
||||
QTimer::singleShot(500, this, SLOT(showFailedToParseMainUserAppsJsonFile()));
|
||||
}
|
||||
else {
|
||||
QString function = __func__; log(function + ": Main user applications' JSON file doesn't exist; assuming that no user applications are currently installed", className);
|
||||
}
|
||||
|
||||
ui->editUserAppsBtn->deleteLater();
|
||||
ui->editUserAppsBtn->hide();
|
||||
ui->label_6->hide();
|
||||
ui->line_2->hide();
|
||||
ui->line_3->hide();
|
||||
ui->editUserAppsBtn->hide();
|
||||
ui->label_6->deleteLater();
|
||||
ui->horizontalLayout->deleteLater();
|
||||
ui->line_2->deleteLater();
|
||||
|
|
Loading…
Reference in a new issue