Skip to content

Commit

Permalink
Fixed Display Management Keybindings not opening keybind edit dialog …
Browse files Browse the repository at this point in the history
…when selected from the control panel's Display menu
  • Loading branch information
Kaldaien committed Sep 1, 2023
1 parent b235035 commit 6e587da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/control_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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;

Expand Down

0 comments on commit 6e587da

Please sign in to comment.