Prevent infinite recursion in PathConfig.BrowseFolder

fixes 0b5f48aed
This commit is contained in:
YoshiRulz 2021-11-17 22:16:49 +10:00
parent 5587a4e56c
commit 9fa3e34beb
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions
src/BizHawk.Client.EmuHawk/config

View File

@ -174,7 +174,7 @@ namespace BizHawk.Client.EmuHawk
private void BrowseFolder(TextBox box, string name, string system)
{
// Ugly hack, we don't want to pass in the system in for system base and global paths
if (name == "Base" || system == "Global" || system == PathEntryCollection.GLOBAL)
if (system is not null && (name is "Base" || system is "Global" || system == PathEntryCollection.GLOBAL))
{
BrowseFolder(box, name, system: null);
return;