mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00: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
2 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
|
use yazi_dds::Pubsub;
|
||||||
use yazi_shared::{event::{Cmd, Data}, fs::Url, render};
|
use yazi_shared::{event::{Cmd, Data}, fs::Url, render};
|
||||||
|
|
||||||
use crate::manager::Manager;
|
use crate::manager::Manager;
|
||||||
|
|
@ -42,5 +43,8 @@ impl Manager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.watcher.watch(to_watch);
|
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_proxy::ManagerProxy;
|
||||||
use yazi_shared::{event::{Cmd, Data}, render};
|
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);
|
ManagerProxy::hover(None);
|
||||||
render!();
|
render!();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue