File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/UniGetUI.PackageEngine.PackageManagerClasses/Packages/Classes Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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)") ;
You can’t perform that action at this time.
0 commit comments