[chore:] various tiny improvements
This commit is contained in:
@@ -38,6 +38,11 @@ public partial class MainWindow : Window
|
|||||||
Logger.Log("Loading settings...");
|
Logger.Log("Loading settings...");
|
||||||
Global.Load();
|
Global.Load();
|
||||||
Settings.Load();
|
Settings.Load();
|
||||||
|
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(Global._instance.config_path))
|
||||||
|
TbConfigPath.Text = PathUtilities.NormalizeFileSystemPath(Global._instance.config_path);
|
||||||
|
|
||||||
LoadPdfExportOptions();
|
LoadPdfExportOptions();
|
||||||
HookPdfExportOptionEvents();
|
HookPdfExportOptionEvents();
|
||||||
|
|
||||||
@@ -132,6 +137,8 @@ public partial class MainWindow : Window
|
|||||||
|
|
||||||
private void MnuExit_OnClick(object? sender, RoutedEventArgs e)
|
private void MnuExit_OnClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
Settings.Save();
|
||||||
|
Global.Save();
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -451,6 +458,7 @@ public partial class MainWindow : Window
|
|||||||
TbSettingsCustomerDescription.Text = "";
|
TbSettingsCustomerDescription.Text = "";
|
||||||
TbSettingsCustomerName.Text = "";
|
TbSettingsCustomerName.Text = "";
|
||||||
TbSettingsCustomerPatchInfo.Text = "";
|
TbSettingsCustomerPatchInfo.Text = "";
|
||||||
|
TbSettingsCustomerName.Focus();
|
||||||
|
|
||||||
Settings.Save();
|
Settings.Save();
|
||||||
RefreshCustomerItems();
|
RefreshCustomerItems();
|
||||||
|
|||||||
Reference in New Issue
Block a user