mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Fix TextPrompt::Blocking
This commit is contained in:
@@ -81,7 +81,10 @@ String TextPrompt::Blocking(String title, String message, String text, String pl
|
|||||||
String outputString;
|
String outputString;
|
||||||
new TextPrompt(title, message, text, placeholder, multiline, { [&outputString](String const &resultText) {
|
new TextPrompt(title, message, text, placeholder, multiline, { [&outputString](String const &resultText) {
|
||||||
outputString = resultText;
|
outputString = resultText;
|
||||||
} });
|
ui::Engine::Ref().Break();
|
||||||
|
}, [](){
|
||||||
|
ui::Engine::Ref().Break();
|
||||||
|
}});
|
||||||
EngineProcess();
|
EngineProcess();
|
||||||
return outputString;
|
return outputString;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user