aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/deckit/DeckItGeneralPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/deckit/DeckItGeneralPage.qml')
-rw-r--r--desktop/modules/deckit/DeckItGeneralPage.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/modules/deckit/DeckItGeneralPage.qml b/desktop/modules/deckit/DeckItGeneralPage.qml
index 358574f..776099a 100644
--- a/desktop/modules/deckit/DeckItGeneralPage.qml
+++ b/desktop/modules/deckit/DeckItGeneralPage.qml
@@ -13,6 +13,7 @@ import Quickshell
import QtQuick
import "../.."
import "../qtmaildir"
+import "Modules.js" as Modules
// deck-it's General page: the intro, Start, Display and Advanced. Every field
// edits the draft of ~/.config/deck-it/config.toml shared by the four deck-it
@@ -76,6 +77,17 @@ Column {
Setting { store: col.st; section: "display"; key: "name"; label: "Output name"
placeholder: col.st.placeholder("display", "name") }
+ Heading { objectName: "modules/tabs"; text: "Tabs" }
+ Small { text: "The tablet's tabs beside the Dashboard." }
+ Repeater {
+ model: Modules.tabs(Object.keys(col.def("modules") ?? {}))
+ BoolSetting {
+ required property string modelData
+ store: col.st; section: "modules"; key: modelData; label: Modules.name(modelData)
+ fallback: col.def("modules", modelData) ?? true
+ }
+ }
+
Heading { text: "Advanced" }
Setting { store: col.st; section: "ports"; key: "command_center"; label: "Dashboard port"; kind: "int"; min: 1024; max: 65535
placeholder: col.st.placeholder("ports", "command_center"); hint: "On the tablet's localhost, through adb reverse." }