From 588d78a19cac279b240588f47c26442d5abf3a12 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 23 Oct 2026 17:54:25 +0200 Subject: companion: editable per-app lines in a settings page Her per-app lines were hardcoded in Lines.js under app:. 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. --- desktop/companion/Companion.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/companion/Companion.qml') 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); -- cgit v1.2.3