Skip to content

Commit

Permalink
Permit VNC viewer if device is not rooted but Wi-Fi is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tux-linux committed Aug 25, 2021
1 parent f152ef7 commit ffb37ec
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ffb37ec

Please sign in to comment.