2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

main: Access by reference

Old Clang is fussy about this.
This commit is contained in:
lat9nq 2023-08-22 22:35:55 -04:00
parent 75f5b3177d
commit ce0f1baf51

View file

@ -1159,7 +1159,7 @@ void GMainWindow::InitializeWidgets() {
QMenu context_menu;
for (auto const& [value, text] : Config::use_docked_mode_texts_map) {
context_menu.addAction(text, [this, value] {
context_menu.addAction(text, [&] {
if (value != Settings::values.use_docked_mode.GetValue()) {
OnToggleDockedMode();
}