File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed
Plugins/Flow.Launcher.Plugin.Program Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change 17
17
<system : String x : Key =" flowlauncher_plugin_program_index_start_tooltip" >When enabled, Flow will load programs from the start menu</system : String >
18
18
<system : String x : Key =" flowlauncher_plugin_program_index_registry" >Index Registry</system : String >
19
19
<system : String x : Key =" flowlauncher_plugin_program_index_registry_tooltip" >When enabled, Flow will load programs from the registry</system : String >
20
- <system : String x : Key =" flowlauncher_plugin_program_enable_hidelnkpath" >Hide Apps path</system : String >
20
+ <system : String x : Key =" flowlauncher_plugin_program_enable_hidelnkpath" >Hide app path</system : String >
21
21
<system : String x : Key =" flowlauncher_plugin_program_enable_hidelnkpath_tooltip" >For executable files such as UWP or lnk, hide the file path from being visible</system : String >
22
22
<system : String x : Key =" flowlauncher_plugin_program_enable_description" >Search in Program Description</system : String >
23
23
<system : String x : Key =" flowlauncher_plugin_program_enable_description_tooltip" >Disabling this will also stop Flow from searching via the program desciption</system : String >
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ public Result Result(string query, IPublicAPI api)
314
314
var result = new Result
315
315
{
316
316
Title = title ,
317
- SubTitle = HideLnkPath ( ) ,
317
+ SubTitle = Main . _settings . EnableHideLnkPath ? string . Empty : Package . Location ,
318
318
Icon = Logo ,
319
319
Score = matchResult . Score ,
320
320
TitleHighlightData = matchResult . MatchData ,
@@ -351,18 +351,6 @@ public Result Result(string query, IPublicAPI api)
351
351
352
352
return result ;
353
353
}
354
- public string HideLnkPath ( )
355
- {
356
- bool lnkSetting = Main . _settings . EnableHideLnkPath ;
357
- if ( lnkSetting )
358
- {
359
- return "" ;
360
- }
361
- else
362
- {
363
- return Package . Location ;
364
- }
365
- }
366
354
367
355
public List < Result > ContextMenus ( IPublicAPI api )
368
356
{
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public Result Result(string query, IPublicAPI api)
97
97
var result = new Result
98
98
{
99
99
Title = title ,
100
- SubTitle = HideLnkPath ( ) ,
100
+ SubTitle = Main . _settings . EnableHideLnkPath ? string . Empty : LnkResolvedPath ?? FullPath ,
101
101
IcoPath = IcoPath ,
102
102
Score = matchResult . Score ,
103
103
TitleHighlightData = matchResult . MatchData ,
@@ -545,17 +545,5 @@ public bool Equals([AllowNull] Win32 other)
545
545
546
546
return UniqueIdentifier == other . UniqueIdentifier ;
547
547
}
548
-
549
- public string HideLnkPath ( )
550
- {
551
- bool lnkSetting = Main . _settings . EnableHideLnkPath ;
552
- if ( lnkSetting ) {
553
- return "" ;
554
- }
555
- else
556
- {
557
- return LnkResolvedPath ?? FullPath ;
558
- }
559
- }
560
548
}
561
549
}
You can’t perform that action at this time.
0 commit comments