jcs
/amend
/amendments
/81
repo: Show progress while reading the repo as this can take a while
jcs made amendment 81 over 2 years ago
--- browser.c Wed Jun 15 10:51:11 2022
+++ browser.c Wed Jun 15 22:39:15 2022
@@ -90,7 +90,7 @@ browser_init(struct repo *repo)
Point cell_size = { 0, 0 };
Cell cell = { 0 };
short padding = 10, colonpos, n;
-
+
browser = xmalloczero(sizeof(struct browser));
browser->state = BROWSER_STATE_IDLE;
browser->repo = repo;
@@ -180,6 +180,7 @@ browser_init(struct repo *repo)
browser_update_menu(browser);
browser_add_files(browser);
UpdateScrollbarForTE(browser->diff_scroller, browser->diff_te, true);
+ progress(NULL);
ShowWindow(browser->win);
return browser;
--- repo.c Wed Jun 15 22:28:04 2022
+++ repo.c Wed Jun 15 22:40:10 2022
@@ -67,8 +67,8 @@ repo_open(AppFile *file)
progress("Verifying repository...");
bile_verify(bile);
- progress(NULL);
+ progress("Reading repository...");
return repo_init(bile, 0);
}