mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-05 06:03:57 +03:00
unnecessary garbage has been removed
This commit is contained in:
parent
ea9931dc83
commit
416e14b418
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,6 @@ var SettingsUpdate = func(w http.ResponseWriter, r *http.Request) {
|
||||||
wallpaper := r.FormValue("wallpaper")
|
wallpaper := r.FormValue("wallpaper")
|
||||||
startup := r.FormValue("startup")
|
startup := r.FormValue("startup")
|
||||||
|
|
||||||
fmt.Println("S: "+startup, "W: "+wallpaper)
|
|
||||||
|
|
||||||
if startup == "" && wallpaper == "" {
|
if startup == "" && wallpaper == "" {
|
||||||
utils.Respond(w, utils.Message(false, "All fields are required."))
|
utils.Respond(w, utils.Message(false, "All fields are required."))
|
||||||
return
|
return
|
||||||
|
@ -63,6 +61,7 @@ var SettingsUpdate = func(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if wallpaper == "1" {
|
if wallpaper == "1" {
|
||||||
|
fmt.Println("Wallpaper enabled")
|
||||||
go functions.StartWallpaper()
|
go functions.StartWallpaper()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue