Show alert after force checking updates

This commit is contained in:
Gregory Schier
2024-01-19 22:11:02 -08:00
parent bd3da86317
commit bf92371a49
3 changed files with 21 additions and 9 deletions

View File

@@ -733,7 +733,7 @@ async fn check_for_updates(
app_handle: AppHandle<Wry>,
db_instance: State<'_, Mutex<Pool<Sqlite>>>,
yaak_updater: State<'_, Mutex<YaakUpdater>>,
) -> Result<(), String> {
) -> Result<bool, String> {
let pool = &*db_instance.lock().await;
let update_mode = get_update_mode(pool).await;
yaak_updater