From bc54b07fdc575b386c1b36acbfcd724aa195103c Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Thu, 20 Oct 2022 17:00:18 +0800 Subject: [PATCH] manually set win32 uid when construct --- .../Flow.Launcher.Plugin.Program/Programs/Win32.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 428d36c6e..4e6a84f57 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -27,14 +27,7 @@ namespace Flow.Launcher.Plugin.Program.Programs public string Name { get; set; } public string UniqueIdentifier { get => _uid; set => _uid = value.ToLowerInvariant(); } public string IcoPath { get; set; } - public string FullPath { - get => _fullPath; - set - { - _fullPath = value; - _uid = value.ToLowerInvariant(); - } - } + public string FullPath { get; set; } public string LnkResolvedPath { get; set; } public string ParentDirectory { get; set; } public string ExecutableName { get; set; } @@ -46,7 +39,6 @@ namespace Flow.Launcher.Plugin.Program.Programs private const string ShortcutExtension = "lnk"; private const string ExeExtension = "exe"; private string _uid = string.Empty; - private string _fullPath = string.Empty; private static readonly Win32 Default = new Win32() { @@ -57,7 +49,7 @@ namespace Flow.Launcher.Plugin.Program.Programs LnkResolvedPath = null, ParentDirectory = string.Empty, ExecutableName = null, - //UniqueIdentifier = string.Empty, + UniqueIdentifier = string.Empty, Valid = false, Enabled = false }; @@ -218,7 +210,7 @@ namespace Flow.Launcher.Plugin.Program.Programs Name = Path.GetFileNameWithoutExtension(path), IcoPath = path, FullPath = path, - //UniqueIdentifier = path, + UniqueIdentifier = path, ParentDirectory = Directory.GetParent(path).FullName, Description = string.Empty, Valid = true,