From 75b6b1dc4d238af1ed2483b11ce81ae4cc83f605 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Wed, 20 May 2026 08:00:20 +0200 Subject: [PATCH] [chore:] various tiny improvements --- MainWindow.axaml.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index ad07b2a..06f8230 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -38,6 +38,11 @@ public partial class MainWindow : Window Logger.Log("Loading settings..."); Global.Load(); Settings.Load(); + + + if (!string.IsNullOrWhiteSpace(Global._instance.config_path)) + TbConfigPath.Text = PathUtilities.NormalizeFileSystemPath(Global._instance.config_path); + LoadPdfExportOptions(); HookPdfExportOptionEvents(); @@ -132,6 +137,8 @@ public partial class MainWindow : Window private void MnuExit_OnClick(object? sender, RoutedEventArgs e) { + Settings.Save(); + Global.Save(); Environment.Exit(0); } @@ -451,6 +458,7 @@ public partial class MainWindow : Window TbSettingsCustomerDescription.Text = ""; TbSettingsCustomerName.Text = ""; TbSettingsCustomerPatchInfo.Text = ""; + TbSettingsCustomerName.Focus(); Settings.Save(); RefreshCustomerItems();