No sound on opening a window
This commit is contained in:
1 parent
518e2b3cc5
commit
8b343d5a4a
1 file changed
-3
@@ -962,10 +962,7 @@ bool Ui::window_begin(ImVec2 screen, float inset)
|
||||
ImGui::SetNextWindowSize(size);
|
||||
ImGui::SetNextWindowPos({screen.x / 2, above / 2}, ImGuiCond_Always, {0.5f, 0.5f});
|
||||
if (!ImGui::IsPopupOpen(title))
|
||||
{
|
||||
ImGui::OpenPopup(title);
|
||||
sound_play(SOUND_OPEN);
|
||||
}
|
||||
isWindowOpen = true;
|
||||
if (ImGui::BeginPopupModal(title, &isWindowOpen, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove))
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user