mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 18:11:31 +02:00
Qt/CheatsManager: Let the 'Configure Dolphin' button shown in the Cheats Manager when Cheats are disabled actually open the settings.
This commit is contained in:
parent
4d1bd54917
commit
aee6e45386
@ -78,6 +78,10 @@ void CheatsManager::OnStateChanged(Core::State state)
|
||||
m_tab_widget->insertTab(1, m_gecko_code, tr("Gecko Codes"));
|
||||
m_tab_widget->setTabUnclosable(0);
|
||||
m_tab_widget->setTabUnclosable(1);
|
||||
|
||||
connect(m_ar_code, &ARCodeWidget::OpenGeneralSettings, this, &CheatsManager::OpenGeneralSettings);
|
||||
connect(m_gecko_code, &GeckoCodeWidget::OpenGeneralSettings, this,
|
||||
&CheatsManager::OpenGeneralSettings);
|
||||
}
|
||||
|
||||
void CheatsManager::CreateWidgets()
|
||||
|
@ -33,6 +33,9 @@ public:
|
||||
explicit CheatsManager(QWidget* parent = nullptr);
|
||||
~CheatsManager();
|
||||
|
||||
signals:
|
||||
void OpenGeneralSettings();
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
void ConnectWidgets();
|
||||
|
@ -220,6 +220,9 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters,
|
||||
ConnectMenuBar();
|
||||
ConnectHotkeys();
|
||||
|
||||
connect(m_cheats_manager, &CheatsManager::OpenGeneralSettings, this,
|
||||
&MainWindow::ShowGeneralWindow);
|
||||
|
||||
InitCoreCallbacks();
|
||||
|
||||
NetPlayInit();
|
||||
|
Loading…
Reference in New Issue
Block a user