Skip to content

Commit

Permalink
Merge branch 'main' into fix/ui_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 authored Feb 25, 2025
2 parents e5a259c + 0a08824 commit b50f225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ pub async fn frontend_ready(app: tauri::AppHandle) {
.emit("app_ready", setup_complete_value)
.expect("Could not emit event 'app_ready'");

if let Err(e) = state
.updates_manager
.init_periodic_updates(app.clone())
.await
{
error!(target: LOG_TARGET, "Failed to init periodic updates: {}", e);
}

let has_missing = missing_dependencies.is_some();
let external_dependencies = missing_dependencies.clone();
if has_missing {
Expand Down
5 changes: 0 additions & 5 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,6 @@ async fn setup_inner(
return Ok(());
}

state
.updates_manager
.init_periodic_updates(app.clone())
.await?;

let data_dir = app
.path()
.app_local_data_dir()
Expand Down

0 comments on commit b50f225

Please sign in to comment.