Add progress bar for shuffle install
This commit is contained in:
@@ -444,6 +444,7 @@ Result install_badges(void)
|
|||||||
int default_set = 0;
|
int default_set = 0;
|
||||||
int default_set_count = 0;
|
int default_set_count = 0;
|
||||||
int default_idx = 0;
|
int default_idx = 0;
|
||||||
|
draw_loading_bar(0, entries_read + 4, INSTALL_BADGES);
|
||||||
for (u32 i = 0; i < entries_read && badge_count < 1000; ++i)
|
for (u32 i = 0; i < entries_read && badge_count < 1000; ++i)
|
||||||
{
|
{
|
||||||
if (!strcmp(badge_files[i].shortExt, "PNG"))
|
if (!strcmp(badge_files[i].shortExt, "PNG"))
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ static Result install_theme_internal(const Entry_List_s * themes, int installmod
|
|||||||
char * padded = NULL;
|
char * padded = NULL;
|
||||||
|
|
||||||
int shuffle_count = 0;
|
int shuffle_count = 0;
|
||||||
|
draw_loading_bar(shuffle_count, themes->shuffle_count + 1, INSTALL_SHUFFLE);
|
||||||
Handle body_cache_handle;
|
Handle body_cache_handle;
|
||||||
|
|
||||||
if(installmode & THEME_INSTALL_BODY)
|
if(installmode & THEME_INSTALL_BODY)
|
||||||
@@ -149,6 +150,7 @@ static Result install_theme_internal(const Entry_List_s * themes, int installmod
|
|||||||
}
|
}
|
||||||
|
|
||||||
shuffle_count++;
|
shuffle_count++;
|
||||||
|
draw_loading_bar(shuffle_count, themes->shuffle_count + 1, INSTALL_SHUFFLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user