From 94102cec979ff42347d1132168bbe9240cad5545 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:43:15 +0200 Subject: [PATCH] fix kill dialog not writing "always" properly (#2232) --- dots/.config/quickshell/ii/killDialog.qml | 3 ++- dots/.config/quickshell/ii/modules/common/Config.qml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/killDialog.qml b/dots/.config/quickshell/ii/killDialog.qml index ff36fb5e6..cf961ef38 100644 --- a/dots/.config/quickshell/ii/killDialog.qml +++ b/dots/.config/quickshell/ii/killDialog.qml @@ -36,6 +36,7 @@ ApplicationWindow { Component.onCompleted: { Config.readWriteDelay = 0; + Config.blockWrites = true; MaterialThemeLoader.reapplyTheme(); } @@ -90,8 +91,8 @@ ApplicationWindow { } onClicked: { Quickshell.execDetached(["killall", ...conflictGroup.programs]) - conflictGroup.visible = false conflictGroup.alwaysSelected() + conflictGroup.visible = false } } RippleButton { diff --git a/dots/.config/quickshell/ii/modules/common/Config.qml b/dots/.config/quickshell/ii/modules/common/Config.qml index 8f18bd0f6..26a7e48a0 100644 --- a/dots/.config/quickshell/ii/modules/common/Config.qml +++ b/dots/.config/quickshell/ii/modules/common/Config.qml @@ -10,6 +10,7 @@ Singleton { property alias options: configOptionsJsonAdapter property bool ready: false property int readWriteDelay: 50 // milliseconds + property bool blockWrites: false function setNestedValue(nestedKey, value) { let keys = nestedKey.split("."); @@ -63,6 +64,7 @@ Singleton { id: configFileView path: root.filePath watchChanges: true + blockWrites: root.blockWrites onFileChanged: fileReloadTimer.restart() onAdapterUpdated: fileWriteTimer.restart() onLoaded: root.ready = true