fix: saving off work

This commit is contained in:
Kevin
2025-06-23 14:02:39 -05:00
parent d8ed24f463
commit 6abc35e2fc
10 changed files with 63 additions and 8 deletions

View File

@ -67,6 +67,7 @@ pub struct Settings {
#[derive(Debug, Default, Clone, Deserialize, Serialize, JsonSchema, ts_rs::TS, PartialEq, Validate)]
#[ts(export)]
#[serde(rename_all = "snake_case")]
#[serde(deny_unknown_fields)]
pub struct AppSettings {
/// The settings for the appearance of the app.
#[serde(default, skip_serializing_if = "is_default")]
@ -96,7 +97,6 @@ pub struct AppSettings {
pub show_debug_panel: bool,
/// If true, the grid cells will be fixed-size, where the width is the user's default length unit.
/// If false, the grid's size will scale as the user zooms in and out.
#[serde(default = "make_it_so", skip_serializing_if = "is_default")]
pub fixed_size_grid: bool,
}