mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix kill dialog not writing "always" properly (#2232)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user