Explorar o código

Taskbar: Remove window buttons from the taskbar when appropriate

Andreas Kling %!s(int64=5) %!d(string=hai) anos
pai
achega
df837562ad
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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; }