Skip to content

Commit 60ceaf1

Browse files
committed
shortcut improvements (fix #3453)
1 parent eb600e6 commit 60ceaf1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/UniGetUI.PackageEngine.PackageManagerClasses/Packages/Classes/DesktopShortcutsDatabase.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ public static void HandleNewShortcuts(IReadOnlyList<string> PreviousShortCutList
172172
}
173173
else if (status is Status.Unknown)
174174
{
175+
// If a shortcut has not been detected yet, and it
176+
// existed before an operation started, then do nothing.
177+
if(PreviousShortcuts.Contains(shortcut))
178+
continue;
179+
175180
if (DeleteUnknownShortcuts)
176181
{
177-
// If a shortcut has not been detected yet, and it
178-
// existed before an operation started, then do nothing.
179-
if(PreviousShortcuts.Contains(shortcut))
180-
continue;
181-
182182
// If the shortcut was created during an operation
183183
// and autodelete is enabled, delete that icon
184184
Logger.Warn($"New shortcut {shortcut} will be set for deletion (this shortcut was never seen before)");

0 commit comments

Comments
 (0)