The settings code was almost returned to the old form, errors were fixed

This commit is contained in:
Данил 2022-10-09 12:03:38 +03:00
parent 727cc1d1e6
commit ea9931dc83
2 changed files with 110 additions and 114 deletions

View file

@ -63,7 +63,7 @@ func SetWallpaper() {
func StartWallpaper() {
type Autostart struct {
Autochangewallpaper int `json:"autochangewallpaper"`
Wallpaper int `json:"wallpaper"`
}
client := fetch.NewDefault()
@ -83,7 +83,7 @@ func StartWallpaper() {
Logger(err.Error())
}
if AutostartSetWallpaper.Autochangewallpaper == 1 {
if AutostartSetWallpaper.Wallpaper == 1 {
times := time.Now()
t := time.Date(times.Year(), times.Month(), times.Day(), 4, 50, times.Second(), times.Nanosecond(), time.UTC)