diff --git a/loader/src/ui/mods/popups/ModPopup.cpp b/loader/src/ui/mods/popups/ModPopup.cpp index 1d8b6f8a..fb9c54f8 100644 --- a/loader/src/ui/mods/popups/ModPopup.cpp +++ b/loader/src/ui/mods/popups/ModPopup.cpp @@ -46,7 +46,7 @@ protected: } void onRequest(Request::Event* event) { - if (event->getValue() && event->getValue()->isOk() && event->getValue()->unwrap()) { + if (event->getValue() && event->getValue()->isOk() && event->getValue()->inspect([](auto&& value) { return value.has_value(); })) { m_loading->removeFromParent(); m_textarea->setString(event->getValue()->unwrap()->c_str()); }