This commit is contained in:
sxyazi 2024-12-14 13:20:12 +08:00
parent fa1a5377fd
commit 92ed5c7efc
No known key found for this signature in database

View file

@ -9,8 +9,7 @@ use crate::{manager::Manager, tasks::Tasks};
impl Manager { impl Manager {
pub fn refresh(&mut self, _: CmdCow, tasks: &Tasks) { pub fn refresh(&mut self, _: CmdCow, tasks: &Tasks) {
CWD.set(self.cwd()); if CWD.set(self.cwd()) && !MANAGER.title_format.is_empty() {
if !MANAGER.title_format.is_empty() {
execute!(std::io::stderr(), SetTitle(self.title())).ok(); execute!(std::io::stderr(), SetTitle(self.title())).ok();
} }