mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -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->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");
|
||||
|
|
Loading…
Reference in a new issue