mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
13 lines
238 B
Rust
13 lines
238 B
Rust
use yazi_parser::mgr::UpdateTasksOpt;
|
|
|
|
use crate::mgr::Mgr;
|
|
|
|
impl Mgr {
|
|
pub fn update_tasks(&mut self, opt: impl TryInto<UpdateTasksOpt>) {
|
|
let Ok(opt) = opt.try_into() else {
|
|
return;
|
|
};
|
|
|
|
self.watcher.push_files(opt.urls);
|
|
}
|
|
}
|