mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(ui): add unregister frame call to CSimpleFrame dtor
This commit is contained in:
parent
82be126eee
commit
9afd844d5a
3 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue