File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 6
6
using CommunityToolkit . Mvvm . DependencyInjection ;
7
7
using Flow . Launcher . Infrastructure ;
8
8
using Flow . Launcher . Infrastructure . UserSettings ;
9
- using Flow . Launcher . Plugin ;
10
9
using Flow . Launcher . SettingPages . Views ;
11
10
using Flow . Launcher . ViewModel ;
12
11
using ModernWpf . Controls ;
@@ -16,7 +15,6 @@ namespace Flow.Launcher;
16
15
17
16
public partial class SettingWindow
18
17
{
19
- private readonly IPublicAPI _api ;
20
18
private readonly Settings _settings ;
21
19
private readonly SettingWindowViewModel _viewModel ;
22
20
@@ -26,7 +24,6 @@ public SettingWindow()
26
24
_settings = Ioc . Default . GetRequiredService < Settings > ( ) ;
27
25
DataContext = viewModel ;
28
26
_viewModel = viewModel ;
29
- _api = Ioc . Default . GetRequiredService < IPublicAPI > ( ) ;
30
27
InitializePosition ( ) ;
31
28
InitializeComponent ( ) ;
32
29
}
@@ -49,7 +46,7 @@ private void OnClosed(object sender, EventArgs e)
49
46
_settings . SettingWindowTop = Top ;
50
47
_settings . SettingWindowLeft = Left ;
51
48
_viewModel . Save ( ) ;
52
- _api . SavePluginSettings ( ) ;
49
+ App . API . SavePluginSettings ( ) ;
53
50
}
54
51
55
52
private void OnCloseExecuted ( object sender , ExecutedRoutedEventArgs e )
You can’t perform that action at this time.
0 commit comments