mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
WindowServer: Redraw MenuApplets on add/delete
This commit is contained in:
parent
2a74c59dec
commit
597b0c9efd
1 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,8 @@ void AppletManager::add_applet(Window& applet)
|
|||
});
|
||||
|
||||
calculate_applet_rects(MenuManager::the().window());
|
||||
|
||||
MenuManager::the().refresh();
|
||||
}
|
||||
|
||||
void AppletManager::calculate_applet_rects(Window& window)
|
||||
|
@ -105,6 +107,8 @@ void AppletManager::remove_applet(Window& applet)
|
|||
m_applets.remove_first_matching([&](auto& entry) {
|
||||
return &applet == entry.ptr();
|
||||
});
|
||||
|
||||
MenuManager::the().refresh();
|
||||
}
|
||||
|
||||
void AppletManager::draw()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue