diff --git a/apps.cpp b/apps.cpp
index 590effa..c3e8aca 100644
--- a/apps.cpp
+++ b/apps.cpp
@@ -32,6 +32,7 @@ apps::apps(QWidget *parent) :
ui->label_5->deleteLater();
ui->koboxAppsOpenButton->deleteLater();
}
+ // Hiding VNC viewer button and label if device is not rooted and doesn't have a working Wi-Fi adapter
if(checkconfig("/external_root/opt/root/rooted") == false) {
if(global::device::isWifiAble == false or checkconfig("/external_root/boot/flags/X11_START") == false or checkconfig("/external_root/boot/flags/X11_STARTED") == false) {
ui->vncViewerLabel->hide();
@@ -40,6 +41,13 @@ apps::apps(QWidget *parent) :
ui->vncLaunchBtn->deleteLater();
}
}
+ // Hiding Light Maps if device doesn't have a working Wi-Fi adapter
+ if(global::device::isWifiAble == false and readFile("/opt/inkbox_device") != "emu\n") {
+ ui->label_2->hide();
+ ui->lightmapsLaunchBtn->hide();
+ ui->label_2->deleteLater();
+ ui->lightmapsLaunchBtn->deleteLater();
+ }
QFile stylesheetFile(":/resources/eink.qss");
stylesheetFile.open(QFile::ReadOnly);
diff --git a/apps.ui b/apps.ui
index 46ada23..00e4f0a 100644
--- a/apps.ui
+++ b/apps.ui
@@ -56,8 +56,8 @@
0
- -
-
+
-
+
75
@@ -65,21 +65,7 @@
- Scribble
-
-
-
- -
-
-
-
- Inter
- 75
- true
-
-
-
- Launch
+ Saved words
@@ -96,33 +82,6 @@
- -
-
-
-
- 75
- true
-
-
-
- Saved words
-
-
-
- -
-
-
-
- Inter
- 75
- true
-
-
-
- Launch
-
-
-
-
@@ -136,47 +95,6 @@
- -
-
-
-
- 75
- true
-
-
-
- Light Maps
-
-
-
- -
-
-
-
- Inter
- 75
- false
- true
-
-
-
- Launch
-
-
-
- -
-
-
-
- 75
- true
-
-
-
- Calendar
-
-
-
-
@@ -191,6 +109,33 @@
+ -
+
+
+
+ Inter
+ 75
+ true
+
+
+
+ Launch
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Scribble
+
+
+
-
@@ -220,7 +165,7 @@
- -
+
-
@@ -233,8 +178,21 @@
- -
-
+
-
+
+
+
+ 75
+ true
+
+
+
+ Calendar
+
+
+
+ -
+
Inter
@@ -247,6 +205,48 @@
+ -
+
+
+
+ Inter
+ 75
+ true
+
+
+
+ Launch
+
+
+
+ -
+
+
+
+ Inter
+ 75
+ false
+ true
+
+
+
+ Launch
+
+
+
+ -
+
+
+
+ 75
+ true
+
+
+
+ Light Maps
+
+
+
-