mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
WindowServer: Clean up any menu objects on process exit.
..and now that this works, implement the Quit menu action in Terminal. :^)
This commit is contained in:
parent
f311d0f353
commit
4b8133e925
Notes:
sideshowbarker
2024-07-19 15:46:41 +09:00
Author: https://github.com/awesomekling
Commit: 4b8133e925
10 changed files with 76 additions and 16 deletions
|
@ -7,6 +7,10 @@ GMenuBar::GMenuBar()
|
|||
|
||||
GMenuBar::~GMenuBar()
|
||||
{
|
||||
if (m_menubar_id) {
|
||||
gui_menubar_destroy(m_menubar_id);
|
||||
m_menubar_id = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void GMenuBar::add_menu(OwnPtr<GMenu>&& menu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue