From ffb37ec9fa767a806ed78e2172c0a504cd9d2c82 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 25 Aug 2021 14:12:45 -0400 Subject: [PATCH] Permit VNC viewer if device is not rooted but Wi-Fi is supported --- apps.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps.cpp b/apps.cpp index d27fb94..d445499 100644 --- a/apps.cpp +++ b/apps.cpp @@ -32,11 +32,13 @@ apps::apps(QWidget *parent) : ui->label_5->deleteLater(); ui->koboxAppsOpenButton->deleteLater(); } - if(checkconfig("/external_root/opt/root/rooted") == false or checkconfig("/external_root/boot/flags/X11_START") == false) { - ui->vncViewerLabel->hide(); - ui->vncLaunchBtn->hide(); - ui->vncViewerLabel->deleteLater(); - ui->vncLaunchBtn->deleteLater(); + if(checkconfig("/external_root/opt/root/rooted") == false) { + if(global::device::isWifiAble == false or checkconfig("/external_root/boot/flags/X11_START") == false) { + ui->vncViewerLabel->hide(); + ui->vncLaunchBtn->hide(); + ui->vncViewerLabel->deleteLater(); + ui->vncLaunchBtn->deleteLater(); + } } QFile stylesheetFile(":/resources/eink.qss");