From 4723b3ae4cc586063750ea5de754b5b0bd779973 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 29 Sep 2021 17:50:02 -0400 Subject: [PATCH] Minor X11 fixes --- apps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps.cpp b/apps.cpp index d445499..590effa 100644 --- a/apps.cpp +++ b/apps.cpp @@ -26,14 +26,14 @@ apps::apps(QWidget *parent) : ui->vncLaunchBtn->setStyleSheet("background: lightGrey; font-size: 9pt; padding: 8px"); // Hiding KoBox apps button and label if X11 isn't enabled/wasn't started - if(checkconfig("/external_root/boot/flags/X11_START") == false) { + if(checkconfig("/external_root/boot/flags/X11_START") == false or checkconfig("/external_root/boot/flags/X11_STARTED") == false) { ui->label_5->hide(); ui->koboxAppsOpenButton->hide(); ui->label_5->deleteLater(); ui->koboxAppsOpenButton->deleteLater(); } if(checkconfig("/external_root/opt/root/rooted") == false) { - if(global::device::isWifiAble == false or checkconfig("/external_root/boot/flags/X11_START") == false) { + if(global::device::isWifiAble == false or checkconfig("/external_root/boot/flags/X11_START") == false or checkconfig("/external_root/boot/flags/X11_STARTED") == false) { ui->vncViewerLabel->hide(); ui->vncLaunchBtn->hide(); ui->vncViewerLabel->deleteLater();