From 51f9ab8498bb9a9d001577731d3366c260b2ac7e Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 15 Oct 2023 00:44:11 -0500 Subject: [PATCH] Qt: Fix typo --- pcsx2-qt/MainWindow.cpp | 34 +++++++++++++++++----------------- pcsx2-qt/MainWindow.h | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 322c62a1de92f..5b2c0ae06b697 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -479,14 +479,14 @@ void MainWindow::recreate() void MainWindow::recreateSettings() { QString current_category; - if (m_setings_window) + if (m_settings_window) { - const bool was_visible = m_setings_window->isVisible(); + const bool was_visible = m_settings_window->isVisible(); - current_category = m_setings_window->getCategory(); - m_setings_window->hide(); - m_setings_window->deleteLater(); - m_setings_window = nullptr; + current_category = m_settings_window->getCategory(); + m_settings_window->hide(); + m_settings_window->deleteLater(); + m_settings_window = nullptr; if (!was_visible) return; @@ -528,11 +528,11 @@ void MainWindow::destroySubWindows() m_controller_settings_window = nullptr; } - if (m_setings_window) + if (m_settings_window) { - m_setings_window->close(); - m_setings_window->deleteLater(); - m_setings_window = nullptr; + m_settings_window->close(); + m_settings_window->deleteLater(); + m_settings_window = nullptr; } } @@ -610,7 +610,7 @@ void MainWindow::onShowAdvancedSettingsToggled(bool checked) m_ui.menuDebug->menuAction()->setVisible(checked); // just recreate the entire settings window, it's easier. - if (m_setings_window) + if (m_settings_window) recreateSettings(); } @@ -2286,11 +2286,11 @@ void MainWindow::restoreDisplayWindowGeometryFromConfig() SettingsWindow* MainWindow::getSettingsWindow() { - if (!m_setings_window) + if (!m_settings_window) { - m_setings_window = new SettingsWindow(); - connect(m_setings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::themeChanged, this, &MainWindow::updateTheme); - connect(m_setings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::languageChanged, this, [this]() { + m_settings_window = new SettingsWindow(); + connect(m_settings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::themeChanged, this, &MainWindow::updateTheme); + connect(m_settings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::languageChanged, this, [this]() { // reopen settings dialog after it applies updateLanguage(); // If you doSettings now, on macOS, the window will somehow end up underneath the main window that was created above @@ -2299,12 +2299,12 @@ SettingsWindow* MainWindow::getSettingsWindow() g_main_window->doSettings("Interface"); }); }); - connect(m_setings_window->getGameListSettingsWidget(), &GameListSettingsWidget::preferEnglishGameListChanged, this, []{ + connect(m_settings_window->getGameListSettingsWidget(), &GameListSettingsWidget::preferEnglishGameListChanged, this, []{ g_main_window->m_game_list_widget->refreshGridCovers(); }); } - return m_setings_window; + return m_settings_window; } void MainWindow::doSettings(const char* category /* = nullptr */) diff --git a/pcsx2-qt/MainWindow.h b/pcsx2-qt/MainWindow.h index 7dbc595a1af18..688c69124bbaa 100644 --- a/pcsx2-qt/MainWindow.h +++ b/pcsx2-qt/MainWindow.h @@ -282,7 +282,7 @@ private Q_SLOTS: DisplayWidget* m_display_widget = nullptr; DisplayContainer* m_display_container = nullptr; - SettingsWindow* m_setings_window = nullptr; + SettingsWindow* m_settings_window = nullptr; ControllerSettingsWindow* m_controller_settings_window = nullptr; InputRecordingViewer* m_input_recording_viewer = nullptr; AutoUpdaterDialog* m_auto_updater_dialog = nullptr;