mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 07:09:53 +03:00
feat(ui): remove frame from CSimpleTop's frames list when unregistering
This commit is contained in:
1 file changed
+4
-1
@@ -580,5 +580,8 @@ void CSimpleTop::UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event,
|
||||
void CSimpleTop::UnregisterFrame(CSimpleFrame* frame) {
|
||||
this->HideFrame(frame, 0);
|
||||
|
||||
// TODO strata
|
||||
auto framesLink = this->m_frames.Link(frame);
|
||||
if (framesLink) {
|
||||
framesLink->Unlink();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user