Skip to content

Commit f8e588b

Browse files
committed
Refactor: Remove unused namespaces and hotkey converter
Simplified `PluginManager.cs` by removing unused `using` directives, including `System.Windows.Input` and several Flow Launcher-specific namespaces. Eliminated the instantiation of `KeyGestureConverter` in the `ChangePluginHotkey` method, reflecting a change in how hotkeys are processed. These changes reduce dependencies and streamline the codebase.
1 parent 811239b commit f8e588b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System.Text.Json;
77
using System.Threading;
88
using System.Threading.Tasks;
9-
using System.Windows.Input;
109
using Flow.Launcher.Core.ExternalPlugins;
1110
using Flow.Launcher.Core.Resource;
1211
using Flow.Launcher.Infrastructure;
@@ -944,7 +943,6 @@ public static void ChangePluginHotkey(PluginMetadata plugin, SearchWindowPluginH
944943
var oldHotkeyItem = plugin.PluginHotkeys.First(h => h.Id == pluginHotkey.Id);
945944
var settingHotkeyItem = Settings.GetPluginSettings(plugin.ID).pluginHotkeys.First(h => h.Id == pluginHotkey.Id);
946945
var oldHotkeyStr = settingHotkeyItem.Hotkey;
947-
var converter = new KeyGestureConverter();
948946
var oldHotkey = new HotkeyModel(oldHotkeyStr);
949947
var newHotkeyStr = newHotkey.ToString();
950948

0 commit comments

Comments
 (0)