Skip to content

Commit

Permalink
optimize display chapter time (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyphire authored Dec 23, 2023
1 parent 79df482 commit e1a3f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static bool update_chapter_menu(plugin_ctx *ctx, dyn_menu *item) {
for (int i = 0; i < list->num_entries; i++) {
chapter_item *entry = &list->entries[i];
const char *time =
talloc_asprintf(tmp, "%02d:%02d:%02d", (int)entry->time / 3600,
talloc_asprintf(tmp, "[%02d:%02d:%02d]", (int)entry->time / 3600,
(int)entry->time / 60 % 60, (int)entry->time % 60);
append_menu(
item->hmenu, MIIM_STRING | MIIM_DATA, 0, 0,
Expand Down

0 comments on commit e1a3f12

Please sign in to comment.