From 0c6b89fc92565b2487ce9450c9cc2c426e0a5110 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 26 Feb 2025 22:27:16 +0800 Subject: [PATCH] Revert "Add global search panel" This reverts commit f7b1190f9563e188fa4d733f1fa7d9b6c0b1c3cc. --- Flow.Launcher/ActionKeywords.xaml.cs | 18 +-- Flow.Launcher/Languages/en.xaml | 1 - .../InstalledPluginDisplayKeyword.xaml | 106 ++++++------------ Flow.Launcher/ViewModel/PluginViewModel.cs | 17 --- 4 files changed, 37 insertions(+), 105 deletions(-) diff --git a/Flow.Launcher/ActionKeywords.xaml.cs b/Flow.Launcher/ActionKeywords.xaml.cs index 4b678f42d..80a4abef1 100644 --- a/Flow.Launcher/ActionKeywords.xaml.cs +++ b/Flow.Launcher/ActionKeywords.xaml.cs @@ -77,25 +77,11 @@ namespace Flow.Launcher { foreach (var actionKeyword in removedActionKeywords) { - if (actionKeyword == Query.GlobalPluginWildcardSign) - { - pluginViewModel.GlobalSearch = false; - } - else - { - App.API.RemoveActionKeyword(id, actionKeyword); - } + App.API.RemoveActionKeyword(id, actionKeyword); } foreach (var actionKeyword in addedActionKeywords) { - if (actionKeyword == Query.GlobalPluginWildcardSign) - { - pluginViewModel.GlobalSearch = true; - } - else - { - App.API.AddActionKeyword(id, actionKeyword); - } + App.API.AddActionKeyword(id, actionKeyword); } // Update action keywords text and close window diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index f2eeb2de5..b1575b252 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -114,7 +114,6 @@ Off Action keyword Setting Action keyword - Global search Current action keyword New action keyword Change Action Keywords diff --git a/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml b/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml index 197e9ddef..ff2f14c4b 100644 --- a/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml +++ b/Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml @@ -4,80 +4,44 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:ui="http://schemas.modernwpf.com/2019" xmlns:viewModel="clr-namespace:Flow.Launcher.ViewModel" d:DataContext="{d:DesignInstance viewModel:PluginViewModel}" d:DesignHeight="300" d:DesignWidth="300" mc:Ignorable="d"> - - - - -  - - -