allow File Content search to be toggled on off

This commit is contained in:
Jeremy 2021-09-03 07:47:52 +10:00
parent 0534dece0b
commit ee38561ece
3 changed files with 1 additions and 8 deletions

View file

@ -1,9 +1,7 @@
using Flow.Launcher.Plugin.Explorer.Search;
using Flow.Launcher.Plugin.Explorer.Search.QuickAccessLinks;
using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption;
using System;
using System.Collections.Generic;
using System.IO;
namespace Flow.Launcher.Plugin.Explorer
{

View file

@ -30,8 +30,7 @@
<CheckBox Name="ChkActionKeywordEnabled" ToolTip="{DynamicResource plugin_explorer_actionkeyword_enabled_tooltip}"
Margin="10" Grid.Row="0" Grid.Column="2" Content="{DynamicResource plugin_explorer_actionkeyword_enabled}"
Width="auto"
VerticalAlignment="Center" IsChecked="{Binding Enabled}"
Visibility="{Binding EnabledVisibility}"/>
VerticalAlignment="Center" IsChecked="{Binding Enabled}" />
<Button Name="DownButton"
Click="OnDoneButtonClick" Grid.Row="1" Grid.Column="2"
Margin="10 0 10 0" Width="80" Height="35"

View file

@ -32,10 +32,6 @@ namespace Flow.Launcher.Plugin.Explorer.Views
private string actionKeyword;
public Visibility EnabledVisibility
=> CurrentActionKeyword.KeywordProperty == Settings.ActionKeyword.FileContentSearchActionKeyword
? Visibility.Collapsed : Visibility.Visible;
public ActionKeywordSetting(SettingsViewModel settingsViewModel,
ActionKeywordView selectedActionKeyword)
{