gui: Remove close button from Game List dock widget
Users frequently close the game list accidentally and then can't figure out how to restore it. Remove the DockWidgetClosable feature so the close button is not shown. The game list visibility can still be toggled via View > View Game List menu action. Fixes #18518
This commit is contained in:
@@ -3568,6 +3568,7 @@ void main_window::CreateDockWindows()
|
||||
m_mw->setContextMenuPolicy(Qt::PreventContextMenu);
|
||||
|
||||
m_game_list_frame = new game_list_frame(m_gui_settings, m_emu_settings, m_persistent_settings, m_mw);
|
||||
m_game_list_frame->setFeatures(m_game_list_frame->features() & ~QDockWidget::DockWidgetClosable);
|
||||
m_debugger_frame = new debugger_frame(m_gui_settings, m_mw);
|
||||
m_log_frame = new log_frame(m_gui_settings, m_mw);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user