config: Use float64 within the autosave processing

This commit is contained in:
Jöran Karl
2024-06-19 21:10:52 +02:00
parent 832c7deaf8
commit 4170df89eb
3 changed files with 6 additions and 6 deletions

View File

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