File tree Expand file tree Collapse file tree 5 files changed +13
-8
lines changed
Flow.Launcher.Infrastructure/UserSettings
Plugins/Flow.Launcher.Plugin.Program Expand file tree Collapse file tree 5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ public void UpdatePluginSettings(List<PluginMetadata> metadatas)
30
30
metadata . ActionKeywords = settings . ActionKeywords ;
31
31
metadata . ActionKeyword = settings . ActionKeywords [ 0 ] ;
32
32
}
33
+ else
34
+ {
35
+ metadata . ActionKeywords = new List < string > ( ) ;
36
+ metadata . ActionKeyword = string . Empty ;
37
+ }
33
38
metadata . Disabled = settings . Disabled ;
34
39
metadata . Priority = settings . Priority ;
35
40
}
Original file line number Diff line number Diff line change 1
1
using System . Windows ;
2
2
using System . Windows . Media ;
3
3
using Flow . Launcher . Plugin ;
4
- using Flow . Launcher . Core . Resource ;
5
4
using Flow . Launcher . Infrastructure . Image ;
6
5
using Flow . Launcher . Core . Plugin ;
7
6
@@ -11,8 +10,6 @@ public class PluginViewModel : BaseModel
11
10
{
12
11
public PluginPair PluginPair { get ; set ; }
13
12
14
- private readonly Internationalization _translator = InternationalizationManager . Instance ;
15
-
16
13
public ImageSource Image => ImageLoader . Load ( PluginPair . Metadata . IcoPath ) ;
17
14
public bool PluginState
18
15
{
@@ -22,7 +19,7 @@ public bool PluginState
22
19
PluginPair . Metadata . Disabled = ! value ;
23
20
}
24
21
}
25
- public Visibility ActionKeywordsVisibility => PluginPair . Metadata . ActionKeywords . Count > 1 ? Visibility . Collapsed : Visibility . Visible ;
22
+ public Visibility ActionKeywordsVisibility => PluginPair . Metadata . ActionKeywords . Count == 1 ? Visibility . Visible : Visibility . Collapsed ;
26
23
public string InitilizaTime => PluginPair . Metadata . InitTime . ToString ( ) + "ms" ;
27
24
public string QueryTime => PluginPair . Metadata . AvgQueryTime + "ms" ;
28
25
public string ActionKeywordsText => string . Join ( Query . ActionKeywordSeperater , PluginPair . Metadata . ActionKeywords ) ;
Original file line number Diff line number Diff line change 13
13
<system : String x : Key =" flowlauncher_plugin_program_reindex" >Reindex</system : String >
14
14
<system : String x : Key =" flowlauncher_plugin_program_indexing" >Indexing</system : String >
15
15
<system : String x : Key =" flowlauncher_plugin_program_index_start" >Index Start Menu</system : String >
16
+ <system : String x : Key =" flowlauncher_plugin_program_index_start_tooltip" >When enabled, Flow will load programs from the start menu</system : String >
16
17
<system : String x : Key =" flowlauncher_plugin_program_index_registry" >Index Registry</system : String >
18
+ <system : String x : Key =" flowlauncher_plugin_program_index_registry_tooltip" >When enabled, Flow will load programs from the registry</system : String >
17
19
<system : String x : Key =" flowlauncher_plugin_program_enable_description" >Enable Program Description</system : String >
20
+ <system : String x : Key =" flowlauncher_plugin_program_enable_description_tooltip" >Disabling this will also stop Flow from searching via the program desciption</system : String >
18
21
<system : String x : Key =" flowlauncher_plugin_program_suffixes_header" >Suffixes</system : String >
19
22
<system : String x : Key =" flowlauncher_plugin_program_max_depth_header" >Max Depth</system : String >
20
23
Original file line number Diff line number Diff line change 16
16
</Grid .RowDefinitions>
17
17
<StackPanel Grid.Row=" 0" Orientation =" Horizontal" HorizontalAlignment =" Stretch" >
18
18
<StackPanel Orientation =" Vertical" Width =" 250" >
19
- <CheckBox Name =" StartMenuEnabled" IsChecked =" {Binding EnableStartMenuSource}" Margin =" 5" Content =" {DynamicResource flowlauncher_plugin_program_index_start}" />
20
- <CheckBox Name =" RegistryEnabled" IsChecked =" {Binding EnableRegistrySource}" Margin =" 5" Content =" {DynamicResource flowlauncher_plugin_program_index_registry}" />
21
- <CheckBox Name =" DescriptionEnabled" IsChecked =" {Binding EnableDescription}" Margin =" 5" Content =" {DynamicResource flowlauncher_plugin_program_enable_description}" />
19
+ <CheckBox Name =" StartMenuEnabled" IsChecked =" {Binding EnableStartMenuSource}" Margin =" 5" Content =" {DynamicResource flowlauncher_plugin_program_index_start}" ToolTip = " {DynamicResource flowlauncher_plugin_program_index_start_tooltip} " />
20
+ <CheckBox Name =" RegistryEnabled" IsChecked =" {Binding EnableRegistrySource}" Margin =" 5" Content =" {DynamicResource flowlauncher_plugin_program_index_registry}" ToolTip = " {DynamicResource flowlauncher_plugin_program_index_registry_tooltip} " />
21
+ <CheckBox Name =" DescriptionEnabled" IsChecked =" {Binding EnableDescription}" Margin =" 5" Content =" {DynamicResource flowlauncher_plugin_program_enable_description}" ToolTip = " {DynamicResource flowlauncher_plugin_program_enable_description_tooltip} " />
22
22
</StackPanel >
23
23
<StackPanel HorizontalAlignment =" Right" Orientation =" Horizontal" >
24
24
<Button Height =" 31" HorizontalAlignment =" Right" Margin =" 10" Width =" 100" x : Name =" btnLoadAllProgramSource" Click =" btnLoadAllProgramSource_OnClick" Content =" {DynamicResource flowlauncher_plugin_program_all_programs}" />
Original file line number Diff line number Diff line change 4
4
"Name" : " Program" ,
5
5
"Description" : " Search programs in Flow.Launcher" ,
6
6
"Author" : " qianlifeng" ,
7
- "Version" : " 1.5.1 " ,
7
+ "Version" : " 1.5.2 " ,
8
8
"Language" : " csharp" ,
9
9
"Website" : " https://github.com/Flow-Launcher/Flow.Launcher" ,
10
10
"ExecuteFileName" : " Flow.Launcher.Plugin.Program.dll" ,
You can’t perform that action at this time.
0 commit comments