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.
This commit is contained in:
Yonatan Goldschmidt 2020-05-05 23:48:58 +03:00 committed by Andreas Kling
parent d6ab9e6790
commit 83eb31bb2e
Notes: sideshowbarker 2024-07-19 06:56:33 +09:00

View file

@ -135,7 +135,6 @@ NonnullRefPtr<GUI::Button> TaskbarWindow::create_button(const WindowIdentifier&
auto& button = main_widget()->add<TaskbarButton>(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;