add MwTreeViewSetOpened

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@779 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-22 15:25:18 +00:00
parent e1b2f40ac8
commit 7d81e59c7d
3 changed files with 28 additions and 3 deletions

View File

@@ -238,10 +238,10 @@ static void MwFreeWidget(MwWidget handle) {
void MwDestroyWidget(MwWidget handle) {
if(handle->parent != NULL) {
int i;
for(i = 0; i < arrlen(handle->parent->destroy_queue); i++){
for(i = 0; i < arrlen(handle->parent->destroy_queue); i++) {
if(handle->parent->destroy_queue[i] == handle) break;
}
if(i == arrlen(handle->parent->destroy_queue)){
if(i == arrlen(handle->parent->destroy_queue)) {
arrput(handle->parent->destroy_queue, handle);
}
}