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