diff --git a/src/gui/dialogues/TextPrompt.cpp b/src/gui/dialogues/TextPrompt.cpp index bd4db5c50..823fe29c0 100644 --- a/src/gui/dialogues/TextPrompt.cpp +++ b/src/gui/dialogues/TextPrompt.cpp @@ -81,7 +81,10 @@ String TextPrompt::Blocking(String title, String message, String text, String pl String outputString; new TextPrompt(title, message, text, placeholder, multiline, { [&outputString](String const &resultText) { outputString = resultText; - } }); + ui::Engine::Ref().Break(); + }, [](){ + ui::Engine::Ref().Break(); + }}); EngineProcess(); return outputString; }