feat: support for USB mass storage devices, hotplugging
This commit is contained in:
@@ -93,8 +93,8 @@ static void render_toolbar(Canvas& c, const mtk::Theme& theme) {
|
||||
|
||||
for (int i = 0; i < dt.disk_count; i++) {
|
||||
Rect button = toolbar_disk_button_rect(i);
|
||||
char label[8];
|
||||
snprintf(label, sizeof(label), "Disk %d", i);
|
||||
char label[16];
|
||||
snprintf(label, sizeof(label), "Disk %d", disk_block_dev(i));
|
||||
mtk::draw_button(c, button, label, mtk::BUTTON_SECONDARY,
|
||||
toolbar_button_state(button, true, i == dt.selected_disk), theme);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user