mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-28 08:37: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
4
apps.cpp
4
apps.cpp
|
@ -32,12 +32,14 @@ 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) {
|
||||||
|
if(global::device::isWifiAble == false or checkconfig("/external_root/boot/flags/X11_START") == false) {
|
||||||
ui->vncViewerLabel->hide();
|
ui->vncViewerLabel->hide();
|
||||||
ui->vncLaunchBtn->hide();
|
ui->vncLaunchBtn->hide();
|
||||||
ui->vncViewerLabel->deleteLater();
|
ui->vncViewerLabel->deleteLater();
|
||||||
ui->vncLaunchBtn->deleteLater();
|
ui->vncLaunchBtn->deleteLater();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QFile stylesheetFile(":/resources/eink.qss");
|
QFile stylesheetFile(":/resources/eink.qss");
|
||||||
stylesheetFile.open(QFile::ReadOnly);
|
stylesheetFile.open(QFile::ReadOnly);
|
||||||
|
|
Loading…
Reference in a new issue