Browse Source

Taskbar: Remove window buttons from the taskbar when appropriate

Andreas Kling 5 năm trước cách đây
mục cha
commit
df837562ad
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Applications/Taskbar/WindowList.h

+ 2 - 0
Applications/Taskbar/WindowList.h

@@ -15,6 +15,8 @@ public:
 
     ~Window()
     {
+        if (m_button)
+            m_button->remove_from_parent();
     }
 
     WindowIdentifier identifier() const { return m_identifier; }