From 83eb31bb2e68647286e58fa08753f5105d8acf6a Mon Sep 17 00:00:00 2001 From: Yonatan Goldschmidt Date: Tue, 5 May 2020 23:48:58 +0300 Subject: [PATCH] Taskbar: Remove checkable property from taskbar buttons If a button is checkable, its "checked" state is inversed in Button::click. It's not needed for taskbar buttons - their checked state is updated in TaskbarWindow::wm_event, based on the current state of their window. Fixes: #1878. --- Applications/Taskbar/TaskbarWindow.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Applications/Taskbar/TaskbarWindow.cpp b/Applications/Taskbar/TaskbarWindow.cpp index 424fcd1ee7..7e2638ebd0 100644 --- a/Applications/Taskbar/TaskbarWindow.cpp +++ b/Applications/Taskbar/TaskbarWindow.cpp @@ -135,7 +135,6 @@ NonnullRefPtr TaskbarWindow::create_button(const WindowIdentifier& auto& button = main_widget()->add(identifier); button.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed); button.set_preferred_size(140, 22); - button.set_checkable(true); button.set_text_alignment(Gfx::TextAlignment::CenterLeft); button.set_icon(*m_default_icon); return button;