close any opened dialogs when closing the main window

This commit is contained in:
Arisotura
2019-05-25 20:58:32 +02:00
parent af581513fb
commit eb6fe823f8
11 changed files with 54 additions and 0 deletions

View File

@ -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);
}
}