fix: accommodate all hover events for DDS (#1187)

Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
Xerxes-2 2024-06-23 20:23:26 +10:00 committed by GitHub
parent 0c5d621348
commit 804662ef82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
use std::collections::HashSet;
use yazi_dds::Pubsub;
use yazi_shared::{event::{Cmd, Data}, fs::Url, render};
use crate::manager::Manager;
@ -42,5 +43,8 @@ impl Manager {
}
}
self.watcher.watch(to_watch);
// Publish through DDS
Pubsub::pub_from_hover(self.active().idx, self.hovered().map(|h| &h.url));
}
}

View File

@ -1,4 +1,3 @@
use yazi_dds::Pubsub;
use yazi_proxy::ManagerProxy;
use yazi_shared::{event::{Cmd, Data}, render};
@ -44,7 +43,6 @@ impl Tab {
}
}
Pubsub::pub_from_hover(self.idx, self.current.hovered().map(|h| &h.url));
ManagerProxy::hover(None);
render!();
}