Skip to content

Commit

Permalink
Shortcut auto-place no longer removes arguments (Closes #695) (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMacocian authored Apr 29, 2024
1 parent 27e2410 commit 9ea004e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Daybreak/Services/Shortcuts/ShortcutManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private bool ShortcutExists()
{
var shortcut = Shortcut.ReadFromFile(shortcutPath);
var currentExecutable = Process.GetCurrentProcess()?.MainModule?.FileName;
if (shortcut.ExtraData?.EnvironmentVariableDataBlock?.TargetAnsi?.Equals(currentExecutable) is true)
if (shortcut.LinkTargetIDList?.Path?.Equals(currentExecutable) is true)
{
return true;
}
Expand Down

0 comments on commit 9ea004e

Please sign in to comment.