mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:58:11 +00:00
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:
parent
d6ab9e6790
commit
83eb31bb2e
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue