Commit 1afbed3
committed
Report folder scan progress to UI
Emit progress events from the Tauri backend and display them in the React UI. Backend: add total_files and an AtomicUsize completed counter, increment it per-file and emit a "folder-scan-progress" event with completed/total; also increase concurrent worker semaphore from 4 to 8 and adjust the checksum task to clone the window handle and return a result variable. Frontend: listen for "folder-scan-progress", store progress in state, show a determinate LinearProgress and a caption while scanning, initialize an indeterminate progress at scan start, and clear it when finished.1 parent 0cf985d commit 1afbed3
2 files changed
Lines changed: 44 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
| |||
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
| 356 | + | |
354 | 357 | | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
358 | | - | |
| 361 | + | |
359 | 362 | | |
360 | 363 | | |
361 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
362 | 373 | | |
363 | 374 | | |
364 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
893 | 913 | | |
894 | 914 | | |
895 | 915 | | |
| |||
911 | 931 | | |
912 | 932 | | |
913 | 933 | | |
| 934 | + | |
914 | 935 | | |
915 | 936 | | |
916 | 937 | | |
| |||
924 | 945 | | |
925 | 946 | | |
926 | 947 | | |
| 948 | + | |
927 | 949 | | |
928 | 950 | | |
929 | 951 | | |
| |||
1014 | 1036 | | |
1015 | 1037 | | |
1016 | 1038 | | |
1017 | | - | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1018 | 1047 | | |
1019 | 1048 | | |
1020 | 1049 | | |
| |||
0 commit comments