Commit graph

8 commits

Author SHA1 Message Date
bunnie
508c610339 prefsgenerator not in workspace but still needs formatting 2024-01-15 01:04:36 +08:00
bunnie
c48e29fb2c add a way to specify a default value for a setting
turns out more than one item needs to have a default that
doesn't match Rust default values for types. add _or_value()
method so we can specify a default on a blank DB that matches
the expected UX
2022-11-23 05:01:03 +08:00
bunnie
26adda2fa7 CHORE: clean whitespace 2022-11-23 02:18:02 +08:00
Gianguido Sorà
34cbd4218e feat: create the all() method for prefs
Returns an instance of `UserPrefs` with all the preferences filled in.
2022-10-27 14:55:22 +02:00
Gianguido Sorà
4aface7eb5 feat: generate a pref getter that returns the type's default value on
error

PDDB errors might still be there.
2022-10-20 12:30:40 +02:00
Gianguido Sorà
75e3ed603d prefsgenerator: don't generate mutable methods
no need to!
2022-10-18 11:54:18 +02:00
Gianguido Sorà
db9372d5d0 make the thing compile 2022-10-10 15:36:36 +02:00
Gianguido Sorà
8c9cdc4ec5 WIP user prefs 2022-10-10 13:36:34 +02:00