mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
19 lines
314 B
Rust
19 lines
314 B
Rust
use yazi_shared::{event::Cmd, render};
|
|
|
|
use crate::tasks::Tasks;
|
|
|
|
pub struct Opt;
|
|
|
|
impl From<Cmd> for Opt {
|
|
fn from(_: Cmd) -> Self { Self }
|
|
}
|
|
impl From<()> for Opt {
|
|
fn from(_: ()) -> Self { Self }
|
|
}
|
|
|
|
impl Tasks {
|
|
pub fn toggle(&mut self, _: impl Into<Opt>) {
|
|
self.visible = !self.visible;
|
|
render!();
|
|
}
|
|
}
|