message_window: fix visibility persisting after window closes

This commit is contained in:
Hyper 2024-12-04 03:13:16 +00:00
parent 130d72d805
commit f6824c135a

View file

@ -284,6 +284,10 @@ void MessageWindow::Draw()
}
}
}
else if (g_isClosing)
{
s_isVisible = false;
}
}
bool MessageWindow::Open(std::string text, int* result, std::span<std::string> buttons, int defaultButtonIndex)