Better event handling in the webview

This commit is contained in:
Vladimir Borisov 2025-01-21 15:55:27 +02:00
parent de70c49440
commit 0d6b8f23b5
No known key found for this signature in database
GPG key ID: F9A584BE4FCB6603

View file

@ -199,7 +199,7 @@ impl PartialUi for WebView {
_handle: nwg::ControlHandle,
) {
use nwg::Event as E;
if evt == E::OnNotice {
if evt == E::OnNotice && _handle == self.notice.handle {
let message_queue = self.message_queue.clone();
if let Some(controller) = self.controller.get() {
let webview = controller.get_webview().expect("Cannot get vebview");