mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(ui): remove frame from CSimpleTop's frames list when unregistering
This commit is contained in:
parent
961c722825
commit
848c61fa2a
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue