mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
Permit VNC viewer if device is not rooted but Wi-Fi is supported
This commit is contained in:
parent
f152ef7d6b
commit
ffb37ec9fa
1 changed files with 7 additions and 5 deletions
12
apps.cpp
12
apps.cpp
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue