mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
close any opened dialogs when closing the main window
This commit is contained in:
@ -450,5 +450,13 @@ void Open(int type)
|
||||
uiControlShow(uiControl(dlg->win));
|
||||
}
|
||||
|
||||
void Close(int type)
|
||||
{
|
||||
if (openedmask & (1<<type))
|
||||
uiControlDestroy(uiControl(inputdlg[type].win));
|
||||
|
||||
openedmask &= ~(1<<type);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user