1.4 KiB
1.4 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0df0e075-ae86-4208-b08d-a02bb5fa2278 | fix | Fix: Dashboard didn't refresh after sync — re-mount on SyncComplete |
|
0.6 | 0.8 | 2026-02-28T18:09:29.595660+00:00 | 2026-02-28T18:10:06.851656+00:00 |
|
Fix: Dashboard didn't refresh after sync — re-mount on SyncComplete
Problem
The dashboard's handle_message for SyncComplete updated the sync status display but did not re-fetch roster, team, or card data. Users had to navigate away and back to see the newly synced data reflected.
Fix
Added a self.mount(pool, tx) call after successful sync in the SyncComplete handler.
This required changing the handle_message method signature to accept:
pool: &SqlitePooltx: &mpsc::UnboundedSender<AppMessage>
The call site in app.rs was updated accordingly.
Files Affected
screens/dashboard.rs— updatedhandle_messagesignature and addedmountcallapp.rs— updated call site to passpoolandtx
Committed
Part of commit 3e73644.