mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-22 08:46:22 +03:00
autochangewallpaper replace wallpaper
This commit is contained in:
parent
6db4d752ba
commit
9e3ef92685
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ func Database() {
|
||||||
sqlTable := `
|
sqlTable := `
|
||||||
CREATE TABLE IF NOT EXISTS settings (
|
CREATE TABLE IF NOT EXISTS settings (
|
||||||
startup INTEGER DEFAULT 0,
|
startup INTEGER DEFAULT 0,
|
||||||
autochangewallpaper INTEGER DEFAULT 0
|
wallpaper INTEGER DEFAULT 0
|
||||||
);`
|
);`
|
||||||
|
|
||||||
_, err = db.Exec(sqlTable)
|
_, err = db.Exec(sqlTable)
|
||||||
|
@ -30,7 +30,7 @@ func Database() {
|
||||||
Logger(err.Error())
|
Logger(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt, err := db.Prepare("INSERT INTO settings(startup, autochangewallpaper) values(?, ?)")
|
stmt, err := db.Prepare("INSERT INTO settings(startup, wallpaper) values(?,?)")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Logger(err.Error())
|
Logger(err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue