Files
breeze/tests/settings_store_link_behavior.zi
T
waoziandClaude Opus 5.5 997a9163f1 Keep mini mode temporary and without a tray icon
Mini mode is a quick practice, so it no longer opens a tray icon and its
extra window, and it keeps nothing: finished practices, mood check-ins,
and changed settings stay in memory, and nothing is synced or counted
toward habits. The results page drops the save status and the mood
picker, which had nothing to record. Opening the full app from mini mode
saves as usual from then on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 06:08:40 -03:00

26 lines
824 B
Ziran

#import, file "../src/app/settings_store.zi";
#import, file "../src/storage/temporary_data.zi";
#program_export
Answer :: () -> s32 {
if !SettingsStoreInt("speed", 7) { return 1 }
language: [3]u8 = .{122, 104, 0}
if !SettingsStoreText("language", language[:]) { return 2 }
if SettingsReadInt("sync_retry_attempt", 3) != 8 { return 3 }
if SettingsReadInt("a_key_that_is_longer_than_forty_seven_bytes_and_invalid", 17) != 17 {
return 4
}
return 42
}
// Temporary data (mini mode) accepts settings without writing them.
#program_export
TemporaryAnswer :: () -> s32 {
DataSetTemporary(true)
if !SettingsStoreInt("speed", 9) { return 1 }
language: [3]u8 = .{100, 101, 0}
if !SettingsStoreText("language", language[:]) { return 2 }
DataSetTemporary(false)
return 42
}