mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-16 10:04:42 +03:00
feat(ui): add unregister frame call to CSimpleFrame dtor
This commit is contained in:
parent
82be126eee
commit
9afd844d5a
@ -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…
Reference in New Issue
Block a user