GUI: wrap text in warning pop-up

This commit is contained in:
tildearrow 2025-10-21 18:58:43 -05:00
parent 319a557ec3
commit 96f0f7bd78
2 changed files with 4 additions and 2 deletions

View file

@ -6253,7 +6253,9 @@ bool FurnaceGUI::loop() {
centerNextWindow(_("Warning"),canvasW,canvasH);
if (ImGui::BeginPopupModal(_("Warning"),NULL,ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::Text("%s",warnString.c_str());
ImGui::PushTextWrapPos(canvasW);
ImGui::TextUnformatted(warnString.c_str());
ImGui::PopTextWrapPos();
switch (warnAction) {
case GUI_WARN_QUIT:
if (ImGui::Button(_("Yes"))) {