--- a/application/davcontroller.c Sun Sep 29 13:32:51 2024 +0200 +++ b/application/davcontroller.c Sun Sep 29 20:25:41 2024 +0200 @@ -707,7 +707,7 @@ if (sz_downloaded_end) { *sz_downloaded_end = 0; } - + if (download->total_bytes > 0) { double progress = (double)download->downloaded_bytes / (double)download->total_bytes; ui_set(download->progress, progress*100); @@ -780,7 +780,6 @@ DavResource *res = dav_resource_new(file->download->download_sn, file->path); dav_get_content(res, file, (dav_write_func)ddfile_write); - file->download->downloaded_bytes += ftell(f); file->download->downloaded_files++; ui_call_mainthread(uithr_download_update_progress, file->download); @@ -928,7 +927,7 @@ ui_rlabel(dialog, .value = download->label_top_right); ui_newline(dialog); - ui_progressbar(dialog, .value = download->progress, .colspan = 2, .hexpand = TRUE); + ui_progressbar(dialog, .value = download->progress, .min = 0, .max = 100, .colspan = 2, .hexpand = TRUE); ui_newline(dialog); ui_llabel(dialog, .value = download->label_bottom_left);