From 6e587da9643db531bf7727af6e2585e672efd019 Mon Sep 17 00:00:00 2001 From: Kaldaien Date: Fri, 1 Sep 2023 19:49:59 -0400 Subject: [PATCH] Fixed Display Management Keybindings not opening keybind edit dialog when selected from the control panel's Display menu --- CHANGELOG.txt | 7 ++++++- include/SpecialK/DLL_VERSION.H | 4 ++-- src/control_panel.cpp | 5 ++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 092fc8e0e..a064f3d7f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,9 @@ -23.9.1.1 +23.9.1.2 +======== + + Fixed Display Management Keybindings not opening keybind edit dialog when + selected from the control panel's Display menu + +23.9.1.1 ======== + Added ~ operator to Float / Int / Short command console variables to negate the existing value. diff --git a/include/SpecialK/DLL_VERSION.H b/include/SpecialK/DLL_VERSION.H index a2db8d021..1660a9eb5 100644 --- a/include/SpecialK/DLL_VERSION.H +++ b/include/SpecialK/DLL_VERSION.H @@ -3,8 +3,8 @@ #define SK_YEAR 23 #define SK_MONTH 9 #define SK_DATE 1 -#define SK_REV_N 1 -#define SK_REV 1 +#define SK_REV_N 2 +#define SK_REV 2 #ifndef _A2 #define _A2(a) #a diff --git a/src/control_panel.cpp b/src/control_panel.cpp index 5f5cf015d..839e2188b 100644 --- a/src/control_panel.cpp +++ b/src/control_panel.cpp @@ -78,7 +78,7 @@ SK_GetCurrentMS (void) noexcept } static const auto Keybinding = -[] (SK_Keybind* binding, sk::ParameterStringW* param) -> +[] (SK_ConfigSerializedKeybind* binding, sk::ParameterStringW* param) -> auto { if (! (binding != nullptr && param != nullptr)) @@ -90,7 +90,10 @@ auto ImGui::PushID (binding->bind_name); if (SK_ImGui_KeybindSelect (binding, label.c_str ())) + { ImGui::OpenPopup ( binding->bind_name); + binding->assigning = true; + } std::wstring original_binding = binding->human_readable;