mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:36:31 +00:00
queue + local sqlite WIP
This commit is contained in:
@@ -6,12 +6,8 @@ namespace Azaion.Annotator;
|
||||
|
||||
public partial class HelpWindow : Window
|
||||
{
|
||||
private readonly AnnotatorWindowConfig _annotatorWindowConfig;
|
||||
|
||||
public HelpWindow(IOptions<AnnotatorWindowConfig> windowConfig)
|
||||
public HelpWindow()
|
||||
{
|
||||
_annotatorWindowConfig = windowConfig.Value;
|
||||
Loaded += (_, _) => CbShowHelp.IsChecked = _annotatorWindowConfig.ShowHelpOnStart;
|
||||
Closing += (sender, args) =>
|
||||
{
|
||||
args.Cancel = true;
|
||||
@@ -20,7 +16,4 @@ public partial class HelpWindow : Window
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void CbShowHelp_OnChecked(object sender, RoutedEventArgs e) => _annotatorWindowConfig.ShowHelpOnStart = true;
|
||||
private void CbShowHelp_OnUnchecked(object sender, RoutedEventArgs e) => _annotatorWindowConfig.ShowHelpOnStart = false;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user