File tree Expand file tree Collapse file tree 5 files changed +18
-1
lines changed
Plugins/Flow.Launcher.Plugin.ProcessKiller Expand file tree Collapse file tree 5 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 10
10
<system : String x : Key =" flowlauncher_plugin_processkiller_kill_all_count" >kill {0} processes</system : String >
11
11
<system : String x : Key =" flowlauncher_plugin_processkiller_kill_instances" >kill all instances</system : String >
12
12
13
+ <system : String x : Key =" flowlauncher_plugin_processkiller_show_window_title" >Show title for processes with visible windows</system : String >
13
14
<system : String x : Key =" flowlauncher_plugin_processkiller_put_visible_window_process_top" >Put processes with visible windows on the top</system : String >
14
15
15
16
</ResourceDictionary >
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ private List<Result> CreateResultsFromQuery(Query query)
81
81
// Filter processes based on search term
82
82
var searchTerm = query . Search ;
83
83
var processlist = new List < ProcessResult > ( ) ;
84
- var processWindowTitle = ProcessHelper . GetProcessesWithNonEmptyWindowTitle ( ) ;
84
+ var processWindowTitle = Settings . ShowWindowTitle ?
85
+ ProcessHelper . GetProcessesWithNonEmptyWindowTitle ( ) :
86
+ new Dictionary < int , string > ( ) ;
85
87
if ( string . IsNullOrWhiteSpace ( searchTerm ) )
86
88
{
87
89
foreach ( var p in allPocessList )
Original file line number Diff line number Diff line change 2
2
{
3
3
public class Settings
4
4
{
5
+ public bool ShowWindowTitle { get ; set ; } = true ;
6
+
5
7
public bool PutVisibleWindowProcessesTop { get ; set ; } = false ;
6
8
}
7
9
}
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ public SettingsViewModel(Settings settings)
9
9
Settings = settings ;
10
10
}
11
11
12
+ public bool ShowWindowTitle
13
+ {
14
+ get => Settings . ShowWindowTitle ;
15
+ set => Settings . ShowWindowTitle = value ;
16
+ }
17
+
12
18
public bool PutVisibleWindowProcessesTop
13
19
{
14
20
get => Settings . PutVisibleWindowProcessesTop ;
Original file line number Diff line number Diff line change 12
12
<Grid .ColumnDefinitions />
13
13
<Grid .RowDefinitions>
14
14
<RowDefinition Height =" auto" />
15
+ <RowDefinition Height =" auto" />
15
16
</Grid .RowDefinitions>
16
17
<CheckBox
17
18
Grid.Row=" 0"
18
19
Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
20
+ Content =" {DynamicResource flowlauncher_plugin_processkiller_show_window_title}"
21
+ IsChecked =" {Binding ShowWindowTitle}" />
22
+ <CheckBox
23
+ Grid.Row=" 1"
24
+ Margin =" {StaticResource SettingPanelItemRightTopBottomMargin}"
19
25
Content =" {DynamicResource flowlauncher_plugin_processkiller_put_visible_window_process_top}"
20
26
IsChecked =" {Binding PutVisibleWindowProcessesTop}" />
21
27
</Grid >
You can’t perform that action at this time.
0 commit comments