mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-06 05:42:07 -04:00
feat: Auto settings reload (#1707)
* feat: auto-reload settings json file * fix: set settings file reload debounce to 50ms
This commit is contained in:
@@ -2574,6 +2574,13 @@ Singleton {
|
||||
|
||||
property alias settingsFile: settingsFile
|
||||
|
||||
Timer {
|
||||
id: settingsFileReloadDebounce
|
||||
interval: 50
|
||||
onTriggered: settingsFile.reload()
|
||||
repeat: false
|
||||
}
|
||||
|
||||
FileView {
|
||||
id: settingsFile
|
||||
|
||||
@@ -2581,7 +2588,8 @@ Singleton {
|
||||
blockLoading: true
|
||||
blockWrites: true
|
||||
atomicWrites: true
|
||||
watchChanges: !isGreeterMode
|
||||
watchChanges: true
|
||||
onFileChanged: settingsFileReloadDebounce.restart()
|
||||
onLoaded: {
|
||||
if (isGreeterMode)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user