fix kill dialog not writing "always" properly (#2232)

This commit is contained in:
end-4
2025-10-21 17:43:15 +02:00
parent 778620c312
commit 94102cec97
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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 {
@@ -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