Skip to content

Commit 7e7a7ea

Browse files
Jack251970Copilot
andauthored
Ignore case when comparing paths
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0d4e9bb commit 7e7a7ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ContextMenuManager/BluePointLilac.Controls/LogonRestoreDialog.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public bool RunDialog(MainWindow owner)
5858
Content = entry.DisplayText,
5959
Tag = entry.FilePath
6060
});
61-
if (!string.IsNullOrEmpty(SelectedFilePath) && entry.FilePath == SelectedFilePath)
61+
if (!string.IsNullOrEmpty(SelectedFilePath)
62+
&& string.Equals(entry.FilePath, SelectedFilePath, StringComparison.OrdinalIgnoreCase))
6263
preSelectedIndex = i;
6364
}
6465
}

0 commit comments

Comments
 (0)