From d6f7fc9c8808b6fb9d5dfa5be4f4cb41cb5bfb3a Mon Sep 17 00:00:00 2001 From: lashman Date: Fri, 6 Mar 2026 15:24:51 +0200 Subject: [PATCH] Initialize overwrite behavior from app settings The overwrite behavior in the output step now defaults to the value configured in Settings rather than always defaulting to "Ask". --- pixstrip-gtk/src/app.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pixstrip-gtk/src/app.rs b/pixstrip-gtk/src/app.rs index bc061bf..2dd84a1 100644 --- a/pixstrip-gtk/src/app.rs +++ b/pixstrip-gtk/src/app.rs @@ -288,7 +288,12 @@ fn build_ui(app: &adw::Application) { rename_counter_padding: 3, rename_template: String::new(), preserve_dir_structure: false, - overwrite_behavior: 0, + overwrite_behavior: match app_cfg.overwrite_behavior { + pixstrip_core::config::OverwriteBehavior::Ask => 0, + pixstrip_core::config::OverwriteBehavior::AutoRename => 1, + pixstrip_core::config::OverwriteBehavior::Overwrite => 2, + pixstrip_core::config::OverwriteBehavior::Skip => 3, + }, })), };