Skip to content

Commit

Permalink
Remove "E M U L S I O N" from window title bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed May 3, 2023
1 parent 6b137dd commit a0265cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions alloy/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,6 @@ impl TitleSection {
}
}
}

pub fn format_program_name(&self) -> &'static str {
match self.show_program_name {
Some(false) => "",
_ => " : E M U L S I O N",
}
}
}

#[derive(Debug, Default, Clone, Deserialize)]
Expand Down
7 changes: 1 addition & 6 deletions alloy/src/widgets/picture_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,7 @@ impl PictureWidgetData {
Some(file_path) => title_config.format_file_path(file_path),
None => "[ none ]".into(),
};
let title = format!(
"{}{}{}",
name,
playback,
title_config.format_program_name()
);
let title = format!("{name}{playback}");
window.set_title(title);
}

Expand Down

0 comments on commit a0265cc

Please sign in to comment.