forked from Shinonome/dots-hyprland
fix kill dialog not writing "always" properly (#2232)
This commit is contained in:
@@ -36,6 +36,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Config.readWriteDelay = 0;
|
Config.readWriteDelay = 0;
|
||||||
|
Config.blockWrites = true;
|
||||||
MaterialThemeLoader.reapplyTheme();
|
MaterialThemeLoader.reapplyTheme();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,8 +91,8 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Quickshell.execDetached(["killall", ...conflictGroup.programs])
|
Quickshell.execDetached(["killall", ...conflictGroup.programs])
|
||||||
conflictGroup.visible = false
|
|
||||||
conflictGroup.alwaysSelected()
|
conflictGroup.alwaysSelected()
|
||||||
|
conflictGroup.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RippleButton {
|
RippleButton {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ Singleton {
|
|||||||
property alias options: configOptionsJsonAdapter
|
property alias options: configOptionsJsonAdapter
|
||||||
property bool ready: false
|
property bool ready: false
|
||||||
property int readWriteDelay: 50 // milliseconds
|
property int readWriteDelay: 50 // milliseconds
|
||||||
|
property bool blockWrites: false
|
||||||
|
|
||||||
function setNestedValue(nestedKey, value) {
|
function setNestedValue(nestedKey, value) {
|
||||||
let keys = nestedKey.split(".");
|
let keys = nestedKey.split(".");
|
||||||
@@ -63,6 +64,7 @@ Singleton {
|
|||||||
id: configFileView
|
id: configFileView
|
||||||
path: root.filePath
|
path: root.filePath
|
||||||
watchChanges: true
|
watchChanges: true
|
||||||
|
blockWrites: root.blockWrites
|
||||||
onFileChanged: fileReloadTimer.restart()
|
onFileChanged: fileReloadTimer.restart()
|
||||||
onAdapterUpdated: fileWriteTimer.restart()
|
onAdapterUpdated: fileWriteTimer.restart()
|
||||||
onLoaded: root.ready = true
|
onLoaded: root.ready = true
|
||||||
|
|||||||
Reference in New Issue
Block a user