Qt: Move code to class

This commit is contained in:
Megamouse 2026-05-11 11:44:44 +02:00
parent d075d61a70
commit 72ab6a53bc
2 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,7 @@ game_list_frame::game_list_frame(std::shared_ptr<gui_settings> gui_settings, std
, m_persistent_settings(std::move(persistent_settings))
{
setObjectName("gamelist");
setFeatures(features() & ~QDockWidget::DockWidgetClosable);
m_game_list_actions = std::make_shared<game_list_actions>(this, m_gui_settings);

View File

@ -3674,7 +3674,6 @@ 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);