aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/companion/Companion.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-23 17:54:25 +0200
committerDanilo M. <danix@danix.xyz>2026-10-23 17:54:25 +0200
commit588d78a19cac279b240588f47c26442d5abf3a12 (patch)
tree844da2fd64710edf34ba5896387184bcda602c2e /desktop/companion/Companion.qml
parentc3a6fd802117ec6c3c4355d8d2b6016f0cd21778 (diff)
downloadquickshell-588d78a19cac279b240588f47c26442d5abf3a12.tar.gz
quickshell-588d78a19cac279b240588f47c26442d5abf3a12.zip
companion: editable per-app lines in a settings page
Her per-app lines were hardcoded in Lines.js under app:<class>. They now live in Prefs.companionApps once edited and fall back to Lines.js until then, read live by Companion.qml so a save needs no restart. The new Companion phrases page does full CRUD on apps and their phrases, with a draft, SaveBar and Reset to the built-in set, mirroring Ask presets. Companion settings move out of Desktop into their own Companion group.
Diffstat (limited to 'desktop/companion/Companion.qml')
-rw-r--r--desktop/companion/Companion.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/companion/Companion.qml b/desktop/companion/Companion.qml
index 3102c59..fe2d751 100644
--- a/desktop/companion/Companion.qml
+++ b/desktop/companion/Companion.qml
@@ -258,7 +258,7 @@ PanelWindow {
function say(kind, force) {
const t = Date.now();
if (root.hidden || (!force && !Mood.canSpeak(root.lastLineAt, t))) return;
- const line = Lines.pick(kind, Math.random());
+ const line = Lines.pick(kind, Math.random(), Prefs.companionApps);
if (line === "") return;
root.lastLineAt = t;
bubble.show(line, 3000);