mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibGUI: Set correct default value during menu destruction
This commit is contained in:
parent
8248c74d88
commit
082b7d6b0c
Notes:
sideshowbarker
2024-07-19 04:31:33 +09:00
Author: https://github.com/BenWiederhake
Commit: 082b7d6b0c
Pull-request: https://github.com/SerenityOS/serenity/pull/2898
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void Menu::unrealize_menu()
|
||||||
return;
|
return;
|
||||||
all_menus().remove(m_menu_id);
|
all_menus().remove(m_menu_id);
|
||||||
WindowServerConnection::the().send_sync<Messages::WindowServer::DestroyMenu>(m_menu_id);
|
WindowServerConnection::the().send_sync<Messages::WindowServer::DestroyMenu>(m_menu_id);
|
||||||
m_menu_id = 0;
|
m_menu_id = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu::realize_menu_if_needed()
|
void Menu::realize_menu_if_needed()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue