Commit 1f6c709
committed
tasks: extend window/taskbar progress coverage
Build on the task_window_progress_cb helper introduced in d1228e6
and propagate the Win32 taskbar progress overlay (and any other
platform window progress hook) to more long-running user-visible
tasks.
Helper relocation:
- Move the implementation from task_http.c (HAVE_NETWORKING-gated)
to task_file_transfer.c (always built), so non-network tasks
can use it without pulling in HAVE_NETWORKING.
- Move the prototype in tasks_internal.h out of the HAVE_NETWORKING
block for the same reason.
- Drop the duplicated copy in task_database.c
(task_database_progress_cb) in favour of the shared helper, and
the now-unused video_display_server.h include alongside it.
New coverage:
- task_pl_thumbnail_download.c: the system-wide bulk thumbnail
download task. Long, user-initiated, already drives
task->progress monotonically across two outer phases.
- task_cloudsync.c: cloud sync, which can be very long and reports
progress as files are reconciled.
- task_core_backup.c: both the backup and restore outer tasks, so
user-initiated backup/restore of cores reflects on the taskbar.
The single-entry pl_thumbnail outer task and short-running tasks
(decompress, disc scan, playlist manager, menu explore) are left
unchanged for now -- they finish too quickly for the taskbar
indicator to be useful, and adding them is a trivial follow-up if
that turns out to be wrong.1 parent d1228e6 commit 1f6c709
7 files changed
Lines changed: 40 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
1442 | 1443 | | |
1443 | 1444 | | |
1444 | 1445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| 635 | + | |
634 | 636 | | |
635 | 637 | | |
636 | 638 | | |
| |||
1085 | 1087 | | |
1086 | 1088 | | |
1087 | 1089 | | |
| 1090 | + | |
1088 | 1091 | | |
1089 | 1092 | | |
1090 | 1093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
1667 | 1666 | | |
1668 | 1667 | | |
1669 | 1668 | | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | 1669 | | |
1678 | 1670 | | |
1679 | 1671 | | |
| |||
2607 | 2599 | | |
2608 | 2600 | | |
2609 | 2601 | | |
2610 | | - | |
2611 | | - | |
| 2602 | + | |
| 2603 | + | |
2612 | 2604 | | |
2613 | 2605 | | |
2614 | 2606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
243 | 240 | | |
244 | 241 | | |
245 | 242 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 243 | | |
261 | 244 | | |
262 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| |||
61 | 73 | | |
62 | 74 | | |
63 | 75 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments