mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 12:56:27 -05:00
main: Access by reference
Old Clang is fussy about this.
This commit is contained in:
parent
75f5b3177d
commit
ce0f1baf51
1 changed files with 1 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ void GMainWindow::InitializeWidgets() {
|
||||||
QMenu context_menu;
|
QMenu context_menu;
|
||||||
|
|
||||||
for (auto const& [value, text] : Config::use_docked_mode_texts_map) {
|
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()) {
|
if (value != Settings::values.use_docked_mode.GetValue()) {
|
||||||
OnToggleDockedMode();
|
OnToggleDockedMode();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue