File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
Plugins/Flow.Launcher.Plugin.Program Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -761,6 +761,23 @@ public override string ToString()
761
761
{
762
762
return $ "{ DisplayName } : { Description } ";
763
763
}
764
+
765
+ public override bool Equals ( object obj )
766
+ {
767
+ if ( obj is Application other )
768
+ {
769
+ return UniqueIdentifier == other . UniqueIdentifier ;
770
+ }
771
+ else
772
+ {
773
+ return false ;
774
+ }
775
+ }
776
+
777
+ public override int GetHashCode ( )
778
+ {
779
+ return UniqueIdentifier . GetHashCode ( ) ;
780
+ }
764
781
}
765
782
766
783
public enum PackageVersion
Original file line number Diff line number Diff line change @@ -586,6 +586,18 @@ public bool Equals([AllowNull] Win32 other)
586
586
return UniqueIdentifier == other . UniqueIdentifier ;
587
587
}
588
588
589
+ public override bool Equals ( object obj )
590
+ {
591
+ if ( obj is Win32 other )
592
+ {
593
+ return UniqueIdentifier == other . UniqueIdentifier ;
594
+ }
595
+ else
596
+ {
597
+ return false ;
598
+ }
599
+ }
600
+
589
601
private static IEnumerable < string > GetStartMenuPaths ( )
590
602
{
591
603
var directory1 = Environment . GetFolderPath ( Environment . SpecialFolder . Programs ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class Settings
20
20
/// </summary>
21
21
public List < ProgramSource > DisabledProgramSources { get ; set ; } = new List < ProgramSource > ( ) ;
22
22
23
- [ Obsolete , JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
23
+ [ Obsolete ( "Should use GetSuffixes() instead." ) , JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
24
24
public string [ ] ProgramSuffixes { get ; set ; } = null ;
25
25
public string [ ] CustomSuffixes { get ; set ; } = Array . Empty < string > ( ) ; // Custom suffixes only
26
26
public string [ ] CustomProtocols { get ; set ; } = Array . Empty < string > ( ) ;
You can’t perform that action at this time.
0 commit comments