From 05dde45a750461bc3f5ef6dc6e50783660716552 Mon Sep 17 00:00:00 2001 From: Malkierian Date: Sun, 13 Aug 2023 08:40:44 -0700 Subject: [PATCH] Update AudioEditor.cpp (#3115) --- soh/soh/Enhancements/audio/AudioEditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soh/soh/Enhancements/audio/AudioEditor.cpp b/soh/soh/Enhancements/audio/AudioEditor.cpp index fd24503bb..970685fb5 100644 --- a/soh/soh/Enhancements/audio/AudioEditor.cpp +++ b/soh/soh/Enhancements/audio/AudioEditor.cpp @@ -207,6 +207,10 @@ void Draw_SfxTab(const std::string& tabId, SeqType type) { LUS::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick(); UpdateCurrentBGM(defaultValue, type); } + + if (currentValue == value) { + ImGui::SetItemDefaultFocus(); + } } ImGui::EndCombo();