mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WindowServer: Update checked state of m_window_menu_always_on_top_item
when setting it programmatically.
This commit is contained in:
parent
f8e0bcbedf
commit
0c2f36966c
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/0c2f36966c Pull-request: https://github.com/SerenityOS/serenity/pull/16209
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ void Window::update_window_menu_items()
|
|||
|
||||
m_window_menu_move_item->set_enabled(m_minimized_state == WindowMinimizedState::None && !is_maximized() && !m_fullscreen);
|
||||
|
||||
if (m_window_menu_always_on_top_item)
|
||||
m_window_menu_always_on_top_item->set_checked(m_always_on_top);
|
||||
|
||||
m_window_menu->update_alt_shortcuts_for_items();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue