config: Rework autosave to be rearmed upon change

This commit is contained in:
Jöran Karl
2024-06-24 19:12:47 +02:00
parent 4170df89eb
commit 8b31dc79bf
3 changed files with 28 additions and 17 deletions

View File

@@ -553,7 +553,6 @@ func doSetGlobalOptionNative(option string, nativeValue interface{}) error {
} else if option == "autosave" {
if nativeValue.(float64) > 0 {
config.SetAutoTime(nativeValue.(float64))
config.StartAutoSave()
} else {
config.SetAutoTime(0)
}