mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix opening game properties causing patch reload
This commit is contained in:
parent
509c9318af
commit
c9b23e6e4e
|
@ -40,6 +40,7 @@ private Q_SLOTS:
|
||||||
void onCheatListItemChanged(QTreeWidgetItem* item, int column);
|
void onCheatListItemChanged(QTreeWidgetItem* item, int column);
|
||||||
void onReloadClicked();
|
void onReloadClicked();
|
||||||
void updateListEnabled();
|
void updateListEnabled();
|
||||||
|
void reloadList();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QTreeWidgetItem* getTreeWidgetParent(const std::string_view& parent);
|
QTreeWidgetItem* getTreeWidgetParent(const std::string_view& parent);
|
||||||
|
@ -47,7 +48,6 @@ private:
|
||||||
void setCheatEnabled(std::string name, bool enabled, bool save_and_reload_settings);
|
void setCheatEnabled(std::string name, bool enabled, bool save_and_reload_settings);
|
||||||
void setStateForAll(bool enabled);
|
void setStateForAll(bool enabled);
|
||||||
void setStateRecursively(QTreeWidgetItem* parent, bool enabled);
|
void setStateRecursively(QTreeWidgetItem* parent, bool enabled);
|
||||||
void reloadList();
|
|
||||||
|
|
||||||
Ui::GameCheatSettingsWidget m_ui;
|
Ui::GameCheatSettingsWidget m_ui;
|
||||||
SettingsWindow* m_dialog;
|
SettingsWindow* m_dialog;
|
||||||
|
|
|
@ -57,11 +57,12 @@ GamePatchSettingsWidget::GamePatchSettingsWidget(SettingsWindow* dialog, QWidget
|
||||||
|
|
||||||
setUnlabeledPatchesWarningVisibility(false);
|
setUnlabeledPatchesWarningVisibility(false);
|
||||||
|
|
||||||
connect(m_ui.reload, &QPushButton::clicked, this, &GamePatchSettingsWidget::onReloadClicked);
|
|
||||||
connect(m_ui.allCRCsCheckbox, &QCheckBox::stateChanged, this, &GamePatchSettingsWidget::onReloadClicked);
|
|
||||||
SettingsInterface* sif = m_dialog->getSettingsInterface();
|
SettingsInterface* sif = m_dialog->getSettingsInterface();
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.allCRCsCheckbox, "EmuCore", "ShowPatchesForAllCRCs", false);
|
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.allCRCsCheckbox, "EmuCore", "ShowPatchesForAllCRCs", false);
|
||||||
|
|
||||||
|
connect(m_ui.reload, &QPushButton::clicked, this, &GamePatchSettingsWidget::onReloadClicked);
|
||||||
|
connect(m_ui.allCRCsCheckbox, &QCheckBox::stateChanged, this, &GamePatchSettingsWidget::reloadList);
|
||||||
|
|
||||||
reloadList();
|
reloadList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +134,7 @@ void GamePatchSettingsWidget::reloadList()
|
||||||
m_ui.scrollArea->setWidget(container);
|
m_ui.scrollArea->setWidget(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GamePatchSettingsWidget::setUnlabeledPatchesWarningVisibility(bool visible) {
|
void GamePatchSettingsWidget::setUnlabeledPatchesWarningVisibility(bool visible)
|
||||||
|
{
|
||||||
m_ui.unlabeledPatchWarning->setVisible(visible);
|
m_ui.unlabeledPatchWarning->setVisible(visible);
|
||||||
}
|
}
|
Loading…
Reference in New Issue