forked from 1b-agent/opencadstudio-upstream
fix(start): complete Start page workflow
Track Save As paths, persist the selected section, and size tabbed panels from their actual available width. Refs #443
This commit is contained in:
1 parent
77ea43fb96
commit
658aa4a4a5
5 files changed
+61
-19
No files matched your search
@@ -20,6 +20,8 @@ pub struct AppConfig {
|
||||
pub settings: UserSettings,
|
||||
/// Recent-files list + retained count.
|
||||
pub recent: RecentConfig,
|
||||
/// Last selected section on the tabbed Start page.
|
||||
pub start: StartConfig,
|
||||
/// Which status-bar pills the user has hidden.
|
||||
pub statusbar: StatusBarConfig,
|
||||
/// Ribbon collapse density.
|
||||
@@ -34,6 +36,7 @@ impl Default for AppConfig {
|
||||
Self {
|
||||
settings: UserSettings::default(),
|
||||
recent: RecentConfig::default(),
|
||||
start: StartConfig::default(),
|
||||
statusbar: StatusBarConfig::default(),
|
||||
ribbon: RibbonConfig::default(),
|
||||
plot: PlotDialogState::default(),
|
||||
@@ -59,6 +62,12 @@ impl Default for RecentConfig {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Serialize, Deserialize, Default)]
|
||||
#[serde(default)]
|
||||
pub struct StartConfig {
|
||||
pub section: super::StartSection,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Serialize, Deserialize, Default)]
|
||||
#[serde(default)]
|
||||
pub struct RibbonConfig {
|
||||
|
||||
Reference in new issue
Block a user