mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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.
This commit is contained in:
parent
811239b158
commit
f8e588b4e1
1 changed files with 0 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ using System.Linq;
|
|||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using Flow.Launcher.Core.ExternalPlugins;
|
||||
using Flow.Launcher.Core.Resource;
|
||||
using Flow.Launcher.Infrastructure;
|
||||
|
|
@ -944,7 +943,6 @@ namespace Flow.Launcher.Core.Plugin
|
|||
var oldHotkeyItem = plugin.PluginHotkeys.First(h => h.Id == pluginHotkey.Id);
|
||||
var settingHotkeyItem = Settings.GetPluginSettings(plugin.ID).pluginHotkeys.First(h => h.Id == pluginHotkey.Id);
|
||||
var oldHotkeyStr = settingHotkeyItem.Hotkey;
|
||||
var converter = new KeyGestureConverter();
|
||||
var oldHotkey = new HotkeyModel(oldHotkeyStr);
|
||||
var newHotkeyStr = newHotkey.ToString();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue