Revert "Use proxy.send_event if we're handling events"

This reverts commit 6a56b26b4c.
This commit is contained in:
Tony 2025-03-01 20:20:03 +08:00
parent 6a56b26b4c
commit e89f96602f
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

View File

@ -213,7 +213,7 @@ pub(crate) fn send_user_message<T: UserEvent>(
context: &Context<T>,
message: Message<T>,
) -> Result<()> {
if current_thread().id() == context.main_thread_id && context.plugins.try_lock().is_ok() {
if current_thread().id() == context.main_thread_id {
handle_user_message(
&context.main_thread.window_target,
message,