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");