mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
19 lines
383 B
Rust
19 lines
383 B
Rust
use anyhow::Result;
|
|
use yazi_macro::succ;
|
|
use yazi_parser::tasks::UpdateSucceedOpt;
|
|
use yazi_shared::data::Data;
|
|
|
|
use crate::{Actor, Ctx};
|
|
|
|
pub struct UpdateSucceed;
|
|
|
|
impl Actor for UpdateSucceed {
|
|
type Options = UpdateSucceedOpt;
|
|
|
|
const NAME: &str = "update_succeed";
|
|
|
|
fn act(cx: &mut Ctx, opt: Self::Options) -> Result<Data> {
|
|
cx.mgr.watcher.report(opt.urls);
|
|
succ!();
|
|
}
|
|
}
|