ipc: added bar setDisplayMode {mode}

This commit is contained in:
Lemmy
2026-02-09 18:23:23 -05:00
parent 84b994ebae
commit 6c2dea1fc9
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -33,6 +33,11 @@ Item {
function showBar() {
BarService.isVisible = true;
}
function setDisplayMode(mode: string) {
if (mode === "always_visible" || mode === "non_exclusive" || mode === "auto_hide") {
Settings.data.bar.displayMode = mode;
}
}
}
// Settings IPC helpers (outside IpcHandler to avoid QVariant IPC warnings)