WindowServer: Update checked state of m_window_menu_always_on_top_item

when setting it programmatically.
This commit is contained in:
thankyouverycool 2022-11-24 18:56:14 -05:00 committed by Andreas Kling
parent f8e0bcbedf
commit 0c2f36966c
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00

View file

@ -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();
}