1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Qt: disable emulated pad settings during emulation

This commit is contained in:
Megamouse 2023-05-22 23:35:28 +02:00
parent 5cc2a7c09e
commit 6180a58d7a
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ emulated_pad_settings_dialog::emulated_pad_settings_dialog(pad_type type, QWidge
setObjectName("emulated_pad_settings_dialog");
setAttribute(Qt::WA_DeleteOnClose);
setAttribute(Qt::WA_StyledBackground);
setModal(true);
QVBoxLayout* v_layout = new QVBoxLayout(this);

View File

@ -1841,6 +1841,7 @@ void main_window::OnEmuStop()
}
ui->actionManage_Users->setEnabled(true);
ui->confCamerasAct->setEnabled(true);
ui->menuEmulatedPads->setEnabled(true);
// Refresh game list in order to update time played
if (m_game_list_frame && m_is_list_mode)
@ -1881,6 +1882,7 @@ void main_window::OnEmuReady() const
ui->actionManage_Users->setEnabled(false);
ui->confCamerasAct->setEnabled(false);
ui->menuEmulatedPads->setEnabled(false);
}
void main_window::EnableMenus(bool enabled) const