Skip to content

Commit 0a47636

Browse files
committed
remove obsolete settings property in context menu class
1 parent e5b67ea commit 0a47636

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/ContextMenu.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Infrastructure.UserSettings;
1+
using Flow.Launcher.Infrastructure.UserSettings;
22
using Flow.Launcher.Plugin.PluginsManager.Models;
33
using System;
44
using System.Collections.Generic;
@@ -10,12 +10,9 @@ internal class ContextMenu : IContextMenu
1010
{
1111
private PluginInitContext Context { get; set; }
1212

13-
private Settings Settings { get; set; }
14-
15-
public ContextMenu(PluginInitContext context, Settings settings)
13+
public ContextMenu(PluginInitContext context)
1614
{
1715
Context = context;
18-
Settings = settings;
1916
}
2017

2118
public List<Result> LoadContextMenus(Result selectedResult)

Plugins/Flow.Launcher.Plugin.PluginsManager/Main.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Flow.Launcher.Infrastructure.Storage;
2-
using Flow.Launcher.Infrastructure.UserSettings;
32
using Flow.Launcher.Plugin.PluginsManager.ViewModels;
43
using Flow.Launcher.Plugin.PluginsManager.Views;
54
using System.Collections.Generic;
@@ -35,7 +34,7 @@ public void Init(PluginInitContext context)
3534
Context = context;
3635
viewModel = new SettingsViewModel(context);
3736
Settings = viewModel.Settings;
38-
contextMenu = new ContextMenu(Context, Settings);
37+
contextMenu = new ContextMenu(Context);
3938
pluginManager = new PluginsManager(Context, Settings);
4039
_lastUpdateTime = DateTime.Now;
4140
}

0 commit comments

Comments
 (0)