From e46b4e0865d25dd7e22838a4b973ae0f48e76668 Mon Sep 17 00:00:00 2001 From: Peter Elliott Date: Thu, 17 Sep 2020 20:36:11 -0700 Subject: [PATCH] Minesweeper: Fix inverted Single-Click Chording setting This was introduced by 705cee528a803b1671d16eeaf222d3318708500b, where the '!' was copied from the previous implementation, but the behavior was not --- Games/Minesweeper/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp index 0f6029376a..c9b1a6968f 100644 --- a/Games/Minesweeper/main.cpp +++ b/Games/Minesweeper/main.cpp @@ -96,7 +96,7 @@ int main(int argc, char** argv) app_menu.add_separator(); auto chord_toggler_action = GUI::Action::create_checkable("Single-click chording", [&](auto& action) { - field.set_single_chording(!action.is_checked()); + field.set_single_chording(action.is_checked()); }); chord_toggler_action->set_checked(field.is_single_chording());