File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed
Plugins/Flow.Launcher.Plugin.WebSearch Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ public string IconPath
35
35
}
36
36
37
37
public string Url { get ; set ; }
38
+
39
+ [ JsonIgnore ]
40
+ public bool Status => Enabled ;
38
41
public bool Enabled { get ; set ; }
39
42
40
43
public SearchSource DeepCopy ( )
Original file line number Diff line number Diff line change 69
69
<GridViewColumn
70
70
Width =" 130"
71
71
DisplayMemberBinding =" {Binding ActionKeyword}"
72
- Header =" {DynamicResource flowlauncher_plugin_websearch_action_keyword}" >
73
- <GridViewColumn .CellTemplate>
74
- <DataTemplate >
75
- <TextBlock Text =" {Binding ActionKeyword}" />
76
- </DataTemplate >
77
- </GridViewColumn .CellTemplate>
78
- </GridViewColumn >
72
+ Header =" {DynamicResource flowlauncher_plugin_websearch_action_keyword}" />
79
73
<GridViewColumn
80
74
Width =" 350"
81
75
DisplayMemberBinding =" {Binding Title}"
82
- Header =" {DynamicResource flowlauncher_plugin_websearch_title}" >
83
- <GridViewColumn .CellTemplate>
84
- <DataTemplate >
85
- <TextBlock Text =" {Binding Title}" />
86
- </DataTemplate >
87
- </GridViewColumn .CellTemplate>
88
- </GridViewColumn >
76
+ Header =" {DynamicResource flowlauncher_plugin_websearch_title}" />
89
77
<GridViewColumn Width =" 140" Header =" {DynamicResource flowlauncher_plugin_websearch_enable}" >
90
78
<GridViewColumn .CellTemplate>
91
79
<DataTemplate >
94
82
<Style TargetType =" TextBlock" >
95
83
<Setter Property =" Text" Value =" {DynamicResource flowlauncher_plugin_websearch_false}" />
96
84
<Style .Triggers>
97
- <DataTrigger Binding =" {Binding Enabled , UpdateSourceTrigger=PropertyChanged}" Value =" True" >
85
+ <DataTrigger Binding =" {Binding Status , UpdateSourceTrigger=PropertyChanged}" Value =" True" >
98
86
<Setter Property =" Text" Value =" {DynamicResource flowlauncher_plugin_websearch_true}" />
99
87
</DataTrigger >
100
88
</Style .Triggers>
You can’t perform that action at this time.
0 commit comments