Add session memory, resize mode tabs, improved output summary
This commit is contained in:
@@ -167,6 +167,7 @@ impl Default for ConfigStore {
|
||||
// --- Session Store ---
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
|
||||
#[serde(default)]
|
||||
pub struct SessionState {
|
||||
pub last_input_dir: Option<String>,
|
||||
pub last_output_dir: Option<String>,
|
||||
@@ -175,6 +176,18 @@ pub struct SessionState {
|
||||
pub window_width: Option<i32>,
|
||||
pub window_height: Option<i32>,
|
||||
pub window_maximized: bool,
|
||||
// Last-used wizard settings
|
||||
pub resize_enabled: Option<bool>,
|
||||
pub resize_width: Option<u32>,
|
||||
pub resize_height: Option<u32>,
|
||||
pub convert_enabled: Option<bool>,
|
||||
pub convert_format: Option<String>,
|
||||
pub compress_enabled: Option<bool>,
|
||||
pub quality_preset: Option<String>,
|
||||
pub metadata_enabled: Option<bool>,
|
||||
pub metadata_mode: Option<String>,
|
||||
pub watermark_enabled: Option<bool>,
|
||||
pub rename_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
pub struct SessionStore {
|
||||
|
||||
@@ -163,6 +163,7 @@ fn save_and_load_session() {
|
||||
window_width: Some(1024),
|
||||
window_height: Some(768),
|
||||
window_maximized: false,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
session_store.save(&session).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user