fix: Shortcuts acting as duplicates in settings

This commit is contained in:
WerWolv
2024-12-16 20:26:04 +01:00
parent 313e59d7f9
commit bb99b9a0ef
3 changed files with 29 additions and 5 deletions

View File

@@ -283,7 +283,7 @@ namespace hex::plugin::builtin {
bool settingChanged = false;
ImGui::BeginDisabled(m_drawShortcut.match(m_defaultShortcut));
ImGui::BeginDisabled(m_drawShortcut.matches(m_defaultShortcut));
if (ImGuiExt::IconButton(ICON_VS_X, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
m_hasDuplicate = !ShortcutManager::updateShortcut(m_shortcut, m_defaultShortcut, m_view);