fix: out of order when database is not sqlite3 (#6560)

This commit is contained in:
j2rong4cn
2024-08-03 13:11:09 +08:00
committed by GitHub
parent af9c6afd25
commit 87caaf2459
7 changed files with 14 additions and 9 deletions

View File

@ -34,6 +34,7 @@ func initSettings() {
// create or save setting
for i := range initialSettingItems {
item := &initialSettingItems[i]
item.Index = uint(i)
if item.PreDefault == "" {
item.PreDefault = item.Value
}