Permit VNC viewer if device is not rooted but Wi-Fi is supported

This commit is contained in:
Nicolas Mailloux 2021-08-25 14:12:45 -04:00
parent f152ef7d6b
commit ffb37ec9fa

View file

@ -32,11 +32,13 @@ apps::apps(QWidget *parent) :
ui->label_5->deleteLater(); ui->label_5->deleteLater();
ui->koboxAppsOpenButton->deleteLater(); ui->koboxAppsOpenButton->deleteLater();
} }
if(checkconfig("/external_root/opt/root/rooted") == false or checkconfig("/external_root/boot/flags/X11_START") == false) { if(checkconfig("/external_root/opt/root/rooted") == false) {
ui->vncViewerLabel->hide(); if(global::device::isWifiAble == false or checkconfig("/external_root/boot/flags/X11_START") == false) {
ui->vncLaunchBtn->hide(); ui->vncViewerLabel->hide();
ui->vncViewerLabel->deleteLater(); ui->vncLaunchBtn->hide();
ui->vncLaunchBtn->deleteLater(); ui->vncViewerLabel->deleteLater();
ui->vncLaunchBtn->deleteLater();
}
} }
QFile stylesheetFile(":/resources/eink.qss"); QFile stylesheetFile(":/resources/eink.qss");