From 31d7c9d099cb18a3f200790cc8c7f7cf9ea182a7 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:32:34 -0300 Subject: [PATCH] fix mod descriptions (nasty bug) this is a very bad issue with the result library :( alk pls fix --- loader/src/ui/mods/popups/ModPopup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }