Add an icon size setting (#3)
Launcher / test (push) Successful in 1m59s
Launcher / apk (push) Successful in 38s

This commit was merged in pull request #3.
This commit is contained in:
nandi committed 2026-11-24 22:43:04 +00:00
1 parent 3070db4fb4
commit 472a48f4bd
22 files changed
+901 -51

No files matched your search

+8 -1
View File
@@ -170,6 +170,8 @@ fn exec(e : @app.Effect) -> Unit {
dispatch(LimitsKnown(id, Some(json)))
}
SaveHome(json) => storage_set("launcher.home", json)
SaveIconSize(pct) => storage_set("launcher.iconSize", pct.to_string())
LogError(line) => log_error(line)
SaveLastCheck(t) => storage_set("launcher.update.lastCheck", t.to_string())
Delay(ms, msg) => set_timeout(ms, fn() { dispatch(msg) })
HoldTimer(ms, token) => set_timeout(ms, fn() { feed(Hold(token)) })
@@ -518,7 +520,12 @@ fn main {
None
}
let legacy = if saved is None { Some(storage_legacy()) } else { None }
dispatch(Restore(saved~, legacy~))
let icon_size = if storage_has("launcher.iconSize") {
Some(storage_get("launcher.iconSize"))
} else {
None
}
dispatch(Restore(saved~, legacy~, icon_size~))
if is_android() {
// the shell keeps the build whose install the user cancelled (-1: none)
let declined = h_declined_version()