summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2024-06-22 18:19:27 +0100
committerTillmann Karras <tilkax@gmail.com>2024-06-23 00:13:58 +0100
commit0f659508eadd010dbffb1e0cb7f7826971b4b66e (patch)
tree3cbf94b4b8ef76c23f658529260355b183d56763 /Source
parentb789cd498e955ff64f8b4094acc732089f548122 (diff)
DolphinQt: fix two -Wunused-lambda-capture warnings
Also clean up signals a bit.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Settings.cpp5
-rw-r--r--Source/Core/DolphinQt/Settings.h1
-rw-r--r--Source/Core/DolphinQt/Settings/InterfacePane.cpp10
3 files changed, 5 insertions, 11 deletions
diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp
index 9cc1a1a5ab..4ab29c3e0f 100644
--- a/Source/Core/DolphinQt/Settings.cpp
+++ b/Source/Core/DolphinQt/Settings.cpp
@@ -354,11 +354,6 @@ void Settings::NotifyRefreshGameListComplete()
emit GameListRefreshCompleted();
}
-void Settings::RefreshMetadata()
-{
- emit MetadataRefreshRequested();
-}
-
void Settings::NotifyMetadataRefreshComplete()
{
emit MetadataRefreshCompleted();
diff --git a/Source/Core/DolphinQt/Settings.h b/Source/Core/DolphinQt/Settings.h
index 479d723e59..a99e8c7dca 100644
--- a/Source/Core/DolphinQt/Settings.h
+++ b/Source/Core/DolphinQt/Settings.h
@@ -104,7 +104,6 @@ public:
void RefreshGameList();
void NotifyRefreshGameListStarted();
void NotifyRefreshGameListComplete();
- void RefreshMetadata();
void NotifyMetadataRefreshComplete();
void ReloadTitleDB();
bool IsAutoRefreshEnabled() const;
diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp
index c375214bd3..42f186abee 100644
--- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp
+++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp
@@ -235,15 +235,15 @@ void InterfacePane::ConnectLayout()
connect(m_checkbox_use_builtin_title_database, &QCheckBox::toggled, &Settings::Instance(),
&Settings::GameListRefreshRequested);
connect(m_checkbox_use_covers, &QCheckBox::toggled, &Settings::Instance(),
- &Settings::RefreshMetadata);
+ &Settings::MetadataRefreshRequested);
connect(m_checkbox_show_debugging_ui, &QCheckBox::toggled, &Settings::Instance(),
&Settings::SetDebugModeEnabled);
- connect(m_combobox_theme, &QComboBox::currentIndexChanged, this,
- [this](int index) { Settings::Instance().TriggerThemeChanged(); });
+ connect(m_combobox_theme, &QComboBox::currentIndexChanged, &Settings::Instance(),
+ &Settings::ThemeChanged);
connect(m_combobox_userstyle, &QComboBox::currentIndexChanged, this,
&InterfacePane::OnUserStyleChanged);
connect(m_combobox_language, &QComboBox::currentIndexChanged, this,
- [this]() { OnLanguageChanged(); });
+ &InterfacePane::OnLanguageChanged);
connect(m_checkbox_top_window, &QCheckBox::toggled, &Settings::Instance(),
&Settings::KeepWindowOnTopChanged);
connect(m_radio_cursor_visible_movement, &ConfigRadioInt::OnSelected, &Settings::Instance(),
@@ -253,7 +253,7 @@ void InterfacePane::ConnectLayout()
connect(m_radio_cursor_visible_always, &ConfigRadioInt::OnSelected, &Settings::Instance(),
&Settings::CursorVisibilityChanged);
connect(m_checkbox_lock_mouse, &QCheckBox::toggled, &Settings::Instance(),
- [this]() { Settings::Instance().LockCursorChanged(); });
+ &Settings::LockCursorChanged);
}
void InterfacePane::UpdateShowDebuggingCheckbox()