mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 15:39:55 +03:00
feat(ui): add unregister frame call to CSimpleFrame dtor
This commit is contained in:
3 files changed
+9
No files matched your search
@@ -68,6 +68,8 @@ CSimpleFrame::~CSimpleFrame() {
|
||||
|
||||
this->m_intAC = 3;
|
||||
|
||||
this->m_top->UnregisterFrame(this);
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
|
||||
@@ -576,3 +576,9 @@ void CSimpleTop::UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CSimpleTop::UnregisterFrame(CSimpleFrame* frame) {
|
||||
this->HideFrame(frame, 0);
|
||||
|
||||
// TODO strata
|
||||
}
|
||||
@@ -79,6 +79,7 @@ class CSimpleTop : public CLayoutFrame {
|
||||
int32_t StartMoveOrResizeFrame(CSimpleFrame* frame, MOVERESIZE_REASON reason, float startx, float starty, int32_t a6);
|
||||
int32_t StartMoveOrResizeFrame(CSimpleFrame* frame, MOVERESIZE_REASON reason, float startx, float starty, FRAMEPOINT a6);
|
||||
void UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event, int32_t a4);
|
||||
void UnregisterFrame(CSimpleFrame* frame);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user