mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 12:55:58 +03:00
feat(ui): remove frame from CSimpleTop's frames list when unregistering
This commit is contained in:
parent
961c722825
commit
848c61fa2a
@ -580,5 +580,8 @@ void CSimpleTop::UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event,
|
|||||||
void CSimpleTop::UnregisterFrame(CSimpleFrame* frame) {
|
void CSimpleTop::UnregisterFrame(CSimpleFrame* frame) {
|
||||||
this->HideFrame(frame, 0);
|
this->HideFrame(frame, 0);
|
||||||
|
|
||||||
// TODO strata
|
auto framesLink = this->m_frames.Link(frame);
|
||||||
|
if (framesLink) {
|
||||||
|
framesLink->Unlink();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user