mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-25 09:46:37 +03:00
fix: accommodate all hover
events for DDS (#1187)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
0c5d621348
commit
804662ef82
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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!();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user