mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +00:00
WindowServer: Don't draw separator between pin window & close for modals
Modal windows cannot be pinned and thus we end up drawing 2 separators.
This commit is contained in:
parent
2ded2a8b15
commit
5fe3cc3b85
Notes:
sideshowbarker
2024-07-18 07:59:57 +09:00
Author: https://github.com/luk1337
Commit: 5fe3cc3b85
Pull-request: https://github.com/SerenityOS/serenity/pull/9067
1 changed files with 1 additions and 2 deletions
|
@ -803,10 +803,9 @@ void Window::ensure_window_menu()
|
|||
m_window_menu_pin_item->set_icon(&pin_icon());
|
||||
m_window_menu_pin_item->set_checkable(true);
|
||||
m_window_menu->add_item(move(pin_item));
|
||||
m_window_menu->add_item(make<MenuItem>(*m_window_menu, MenuItem::Type::Separator));
|
||||
}
|
||||
|
||||
m_window_menu->add_item(make<MenuItem>(*m_window_menu, MenuItem::Type::Separator));
|
||||
|
||||
auto close_item = make<MenuItem>(*m_window_menu, (unsigned)WindowMenuAction::Close, "&Close");
|
||||
m_window_menu_close_item = close_item.ptr();
|
||||
m_window_menu_close_item->set_icon(&close_icon());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue