Skip to content

Commit

Permalink
fix: only apply default display name if none is given
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth committed Jun 20, 2024
1 parent 6f8d4f3 commit 6b63a41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ impl<'rofi> rofi_mode::Mode<'rofi> for Mode<'rofi> {
const NAME: &'static str = "nerdy\0";

fn init(mut api: rofi_mode::Api<'rofi>) -> Result<Self, ()> {
api.set_display_name("nerd icon");
if api.display_name().is_none() {
api.set_display_name("nerd icon");
};

tracing_subscriber::registry()
.with(fmt::layer().without_time().with_line_number(true))
Expand Down

0 comments on commit 6b63a41

Please sign in to comment.