mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Fix path layout and Czech stats, and rewrite the install docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
737e27deb0
commit
2cb3565df5
16 changed files with 349 additions and 869 deletions
13
mluvnice.c
13
mluvnice.c
|
|
@ -71,6 +71,19 @@ void mluvnice_init(void) {
|
|||
unit_load_progress(&mluv_unit);
|
||||
}
|
||||
|
||||
void progress_for_mluvnice(ProgressSum *out) {
|
||||
int d;
|
||||
|
||||
if (!out || mluv_unit.n_ex <= 0)
|
||||
return;
|
||||
d = unit_done_count(&mluv_unit);
|
||||
out->total_ex += mluv_unit.n_ex;
|
||||
out->open_units += 1;
|
||||
out->done_ex += d;
|
||||
if (d == mluv_unit.n_ex)
|
||||
out->done_units++;
|
||||
}
|
||||
|
||||
void mluvnice_refresh_ui(void) {
|
||||
for (int i = 0; i < mluv_unit.n_ex; i++) {
|
||||
GtkWidget *btn = mluv_unit.ex_cells[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue