瀏覽代碼

Taskbar: Remove window buttons from the taskbar when appropriate

Andreas Kling 5 年之前
父節點
當前提交
df837562ad
共有 1 個文件被更改,包括 2 次插入0 次删除
  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; }