Merge pull request #1676 from VictoriousRaptor/DisablePATHSource

Disable PATH programs by default
This commit is contained in:
Jeremy Wu 2022-12-20 21:26:42 +11:00 committed by GitHub
commit 35fb999cf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -620,7 +620,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
autoIndexPrograms = autoIndexPrograms.Concat(startMenu); autoIndexPrograms = autoIndexPrograms.Concat(startMenu);
} }
if (settings.EnablePATHSource) if (settings.EnablePathSource)
{ {
var path = PATHPrograms(settings.GetSuffixes(), protocols, commonParents); var path = PATHPrograms(settings.GetSuffixes(), protocols, commonParents);
programs = programs.Concat(path); programs = programs.Concat(path);

View file

@ -118,7 +118,7 @@ namespace Flow.Launcher.Plugin.Program
public bool EnableDescription { get; set; } = false; public bool EnableDescription { get; set; } = false;
public bool HideAppsPath { get; set; } = true; public bool HideAppsPath { get; set; } = true;
public bool EnableRegistrySource { get; set; } = true; public bool EnableRegistrySource { get; set; } = true;
public bool EnablePATHSource { get; set; } = true; public bool EnablePathSource { get; set; } = false;
public string CustomizedExplorer { get; set; } = Explorer; public string CustomizedExplorer { get; set; } = Explorer;
public string CustomizedArgs { get; set; } = ExplorerArgs; public string CustomizedArgs { get; set; } = ExplorerArgs;

View file

@ -69,10 +69,10 @@ namespace Flow.Launcher.Plugin.Program.Views
public bool EnablePATHSource public bool EnablePATHSource
{ {
get => _settings.EnablePATHSource; get => _settings.EnablePathSource;
set set
{ {
_settings.EnablePATHSource = value; _settings.EnablePathSource = value;
ReIndexing(); ReIndexing();
} }
} }

View file

@ -4,7 +4,7 @@
"Name": "Program", "Name": "Program",
"Description": "Search programs in Flow.Launcher", "Description": "Search programs in Flow.Launcher",
"Author": "qianlifeng", "Author": "qianlifeng",
"Version": "2.0.0", "Version": "2.0.1",
"Language": "csharp", "Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher", "Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.Program.dll", "ExecuteFileName": "Flow.Launcher.Plugin.Program.dll",