Qt: Enable game window shortcuts

This commit is contained in:
Megamouse 2023-11-25 01:33:53 +01:00
parent ad3d8675e7
commit e58a89af2d
11 changed files with 36 additions and 127 deletions

View file

@ -2762,7 +2762,11 @@ void main_window::CreateConnects()
connect(ui->confShortcutsAct, &QAction::triggered, [this]()
{
shortcut_dialog dlg(m_gui_settings, this);
connect(&dlg, &shortcut_dialog::saved, m_shortcut_handler, &shortcut_handler::update);
connect(&dlg, &shortcut_dialog::saved, this, [this]()
{
m_shortcut_handler->update();
NotifyShortcutHandlers();
});
dlg.exec();
});