mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
WindowServer: Add a separator before "close" in window menus.
This commit is contained in:
parent
1fa467a424
commit
575acfac98
Notes:
sideshowbarker
2024-07-19 13:25:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/575acfac98e
1 changed files with 1 additions and 0 deletions
|
@ -321,6 +321,7 @@ void WSWindow::popup_window_menu(const Point& position)
|
|||
m_window_menu = make<WSMenu>(nullptr, -1, "(Window Menu)");
|
||||
m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, 1, "Minimize"));
|
||||
m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, 2, "Unminimize"));
|
||||
m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, WSMenuItem::Type::Separator));
|
||||
m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, 3, "Close"));
|
||||
|
||||
m_window_menu->on_item_activation = [&](auto& item) {
|
||||
|
|
Loading…
Reference in a new issue