mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
12 lines
246 B
Rust
12 lines
246 B
Rust
use yazi_shared::event::Cmd;
|
|
|
|
use crate::{manager::Manager, tasks::Tasks};
|
|
|
|
impl Manager {
|
|
pub fn close(&mut self, _: Cmd, tasks: &Tasks) {
|
|
if self.tabs.len() > 1 {
|
|
return self.tabs.close(self.tabs.cursor);
|
|
}
|
|
self.quit((), tasks);
|
|
}
|
|
}
|