Don't eradicate state when I add a new option
This commit is contained in:
parent
c28ec328f9
commit
62f5291840
|
|
@ -16,8 +16,10 @@ use crate::transfer_menu::{transfer_menu, CurrentTransferState, TransferMenuStat
|
||||||
use crate::tree::tree;
|
use crate::tree::tree;
|
||||||
use crate::upper_menu;
|
use crate::upper_menu;
|
||||||
|
|
||||||
|
// Make sure all fields are either skipped by serde or impl default!
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||||
|
#[serde(default)]
|
||||||
pub struct MainWindowState {
|
pub struct MainWindowState {
|
||||||
pub show_side_panel: bool,
|
pub show_side_panel: bool,
|
||||||
pub plate_display_options: PlateDisplayOptions,
|
pub plate_display_options: PlateDisplayOptions,
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ impl WellInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, serde::Serialize, serde::Deserialize)]
|
#[derive(Clone, Copy, Debug, serde::Serialize, serde::Deserialize)]
|
||||||
|
#[serde(default)]
|
||||||
pub struct PlateDisplayOptions {
|
pub struct PlateDisplayOptions {
|
||||||
pub show_transfer_hashes: bool,
|
pub show_transfer_hashes: bool,
|
||||||
pub show_well_volumes: bool,
|
pub show_well_volumes: bool,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue