Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit 85d03b0

Browse files
committed
fix: unexpected crash when unfold menu
1 parent 00a7c53 commit 85d03b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/View/MenuOverlay.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <Infrastructure/Network/ResponseStruct.h>
77
#include <Infrastructure/Utils/Tools.h>
88
#include <chrono>
9+
#include <slint.h>
910

1011
EVENTO_UI_START
1112

@@ -53,7 +54,7 @@ Task<Result<slint::Image>> MenuOverlay::loadUserInfoTask() {
5354
}
5455
co_return Ok(slint::Image::load_from_path(slint::SharedString(avatar.unwrap().u8string())));
5556
}
56-
refreshUserInfo(userInfo);
57+
slint::blocking_invoke_from_event_loop([&] { refreshUserInfo(userInfo); });
5758
bridge.getAccountManager().userInfo() = std::move(userInfo);
5859
co_return Err(Error(Error::Data, "User avatar not found"));
5960
}

0 commit comments

Comments
 (0)