From 58ad92b812992d9db12a7cf7351ff58afa4f05ca Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Tue, 18 Oct 2022 21:46:28 +0800 Subject: [PATCH] Revert changes in Settings.cs --- Plugins/Flow.Launcher.Plugin.Program/Settings.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs index 3fd6a2206..d61ecd2a3 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Windows.Input; namespace Flow.Launcher.Plugin.Program { @@ -10,7 +9,7 @@ namespace Flow.Launcher.Plugin.Program public DateTime LastIndexTime { get; set; } public List ProgramSources { get; set; } = new List(); public List DisabledProgramSources { get; set; } = new List(); - public string[] ProgramSuffixes { get; set; } = {"appref-ms", "exe", "lnk"}; + public string[] ProgramSuffixes { get; set; } = { "appref-ms", "exe", "lnk" }; public bool EnableStartMenuSource { get; set; } = true; @@ -42,16 +41,6 @@ namespace Flow.Launcher.Plugin.Program public string Name { get => name ?? new DirectoryInfo(Location).Name; set => name = value; } public bool Enabled { get; set; } = true; public string UniqueIdentifier { get; set; } - - public override bool Equals(object obj) - { - return obj is ProgramSource other && other.UniqueIdentifier.ToLower() == this.UniqueIdentifier.ToLower(); - } - - public override int GetHashCode() - { - return HashCode.Combine(UniqueIdentifier.ToLower()); - } } public class DisabledProgramSource : ProgramSource { }