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

@ -306,4 +306,11 @@ void Open()
uiControlShow(uiControl(win));
}
void Close()
{
if (!opened) return;
uiControlDestroy(uiControl(win));
opened = false;
}
}