mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +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
Notes:
sideshowbarker
2024-07-19 06:56:33 +09:00
Author: https://github.com/Jongy 🔰 Commit: https://github.com/SerenityOS/serenity/commit/83eb31bb2e6 Pull-request: https://github.com/SerenityOS/serenity/pull/2122 Issue: https://github.com/SerenityOS/serenity/issues/1878
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…
Reference in a new issue