Skip to content

Commit 493a30e

Browse files
committed
remove QuickLook related code from flow
1 parent 70e530b commit 493a30e

File tree

5 files changed

+3
-199
lines changed

5 files changed

+3
-199
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@
8181
<system:String x:Key="ShouldUsePinyinToolTip">Allows using Pinyin to search. Pinyin is the standard system of romanized spelling for translating Chinese.</system:String>
8282
<system:String x:Key="AlwaysPreview">Always Preview</system:String>
8383
<system:String x:Key="AlwaysPreviewToolTip">Always open preview panel when Flow activates. Press {0} to toggle preview.</system:String>
84-
<system:String x:Key="UseQuickLook">Use QuickLook</system:String>
85-
<system:String x:Key="UseQuickLookToolTip">Use QuickLook to preview file results.</system:String>
8684
<system:String x:Key="shadowEffectNotAllowed">Shadow effect is not allowed while current theme has blur effect enabled</system:String>
8785

8886
<!-- Setting Plugin -->
@@ -318,8 +316,6 @@
318316

319317
<!-- General Notice -->
320318
<system:String x:Key="pleaseWait">Please wait...</system:String>
321-
<system:String x:Key="QuickLookFail">Failed to launch QuickLook</system:String>
322-
<system:String x:Key="QuickLookFailTips">Please check if QuickLook is running.</system:String>
323319

324320
<!-- Update -->
325321
<system:String x:Key="update_flowlauncher_update_check">Checking for new update</system:String>

Flow.Launcher/SettingWindow.xaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -859,24 +859,6 @@
859859
</ItemsControl>
860860
</Border>
861861

862-
<Border Style="{DynamicResource SettingGroupBox}">
863-
<ItemsControl Style="{StaticResource SettingGrid}">
864-
<StackPanel Style="{StaticResource TextPanel}">
865-
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource UseQuickLook}" />
866-
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource UseQuickLookToolTip}" />
867-
</StackPanel>
868-
<ui:ToggleSwitch
869-
Grid.Column="2"
870-
FocusVisualMargin="5"
871-
IsOn="{Binding Settings.UseExternalPreview}"
872-
Style="{DynamicResource SideToggleSwitch}"
873-
ToolTip="{DynamicResource UseQuickLookToolTip}" />
874-
<TextBlock Style="{StaticResource Glyph}">
875-
&#xe773;
876-
</TextBlock>
877-
</ItemsControl>
878-
</Border>
879-
880862
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
881863
<ItemsControl Style="{StaticResource SettingGrid}">
882864
<StackPanel Style="{StaticResource TextPanel}">

Plugins/Flow.Launcher.Plugin.Explorer/Helper/QuickLookHelper.cs

Lines changed: 0 additions & 153 deletions
This file was deleted.

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

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace Flow.Launcher.Plugin.Explorer
1616
{
17-
public class Main : ISettingProvider, IAsyncPlugin, IContextMenu, IPluginI18n, IAsyncExternalPreview
17+
public class Main : ISettingProvider, IAsyncPlugin, IContextMenu, IPluginI18n
1818
{
1919
internal static PluginInitContext Context { get; set; }
2020

@@ -87,27 +87,6 @@ public async Task<List<Result>> QueryAsync(Query query, CancellationToken token)
8787
}
8888
}
8989

90-
public async Task TogglePreviewAsync(string path)
91-
{
92-
bool success = await QuickLookHelper.ToggleQuickLookAsync(path).ConfigureAwait(false);
93-
}
94-
public async Task ClosePreviewAsync()
95-
{
96-
bool success = await QuickLookHelper.CloseQuickLookAsync().ConfigureAwait(false);
97-
}
98-
99-
public async Task SwitchPreviewAsync(string path, bool sendFailToast = true)
100-
{
101-
// Switches preview content
102-
// When external is off, do nothing
103-
_ = QuickLookHelper.SwitchQuickLookAsync(path, sendFailToast).ConfigureAwait(false);
104-
}
105-
106-
public async Task OpenPreviewAsync(string path, bool sendFailToast = true)
107-
{
108-
bool success = await QuickLookHelper.OpenQuickLookAsync(path, sendFailToast).ConfigureAwait(false);
109-
}
110-
11190
public string GetTranslatedPluginTitle()
11291
{
11392
return Context.API.GetTranslation("plugin_explorer_plugin_name");

Plugins/Flow.Launcher.Plugin.QuickLook/Languages/en.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xmlns:system="clr-namespace:System;assembly=mscorlib">
55

66
<!-- Plugin Infos -->
7-
<system:String x:Key="plugin_name">Explorer</system:String>
8-
<system:String x:Key="plugin_description">Find and manage files and folders via Windows Search or Everything</system:String>
7+
<system:String x:Key="plugin_name">QuickLook</system:String>
8+
<system:String x:Key="plugin_description">Use QuickLook to preview files</system:String>
99

1010
<!-- Notifications -->
1111
<system:String x:Key="quicklook_failed_to_launch">Failed to launch QuickLook</system:String>

0 commit comments

Comments
 (0)