mirror of
https://github.com/Starlio-app/StarlioX
synced 2025-02-24 23:31:26 +03:00
The settings code was almost returned to the old form, errors were fixed
This commit is contained in:
parent
727cc1d1e6
commit
ea9931dc83
2 changed files with 110 additions and 114 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue