mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Add null check for safety
This commit is contained in:
@ -80,7 +80,7 @@ namespace osu.Game.Overlays
|
||||
switch (action)
|
||||
{
|
||||
case GlobalAction.Select:
|
||||
currentDialog.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.Click();
|
||||
currentDialog?.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.Click();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user