(ctx: egui::Context)
| 61 | } |
| 62 | |
| 63 | async fn background_ui_waker(ctx: egui::Context) { |
| 64 | let mut db_watcher = crate::storage::UpdateWatcher::default(); |
| 65 | let mut cache_watcher = cached::UpdateWatcher::default(); |
| 66 | let freq = std::time::Duration::from_millis(50); |
| 67 | |
| 68 | loop { |
| 69 | if db_watcher.any_changes() || cache_watcher.any_caches() { |
| 70 | ctx.request_repaint(); |
| 71 | } |
| 72 | |
| 73 | tokio::time::sleep(freq).await; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | fn load_phosphor_icons(ctx: &egui::Context) { |
| 78 | let mut fonts = egui::FontDefinitions::default(); |
no test coverage detected