Skip to content

Commit

Permalink
app: center time when no media
Browse files Browse the repository at this point in the history
  • Loading branch information
JerwuQu committed Oct 10, 2024
1 parent 56cb1c5 commit 801af53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggoled_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn main() {
dev.remove_layers(&time_layers);
if config.show_time {
let time_str = time.format("%H:%M:%S").to_string();
time_layers = dev.add_text(&time_str, None, Some(8));
time_layers = dev.add_text(&time_str, None, if media.is_some() { Some(8) } else { None });
}

// Media
Expand Down

0 comments on commit 801af53

Please sign in to comment.