Skip to content

Commit

Permalink
fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Misieq01 committed Aug 9, 2024
1 parent 89bff3b commit 5f27466
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fn main() {
start_mining,
stop_mining,
start_listening_to_user_activity,
stop_listening_to_user_activity
stop_listening_to_user_activity,
set_mode
])
.build(tauri::generate_context!())
Expand All @@ -416,15 +416,14 @@ fn main() {
app.path_resolver().app_log_dir().unwrap()
);

app.run(move |_app_handle, event| {
match event {
tauri::RunEvent::Updater(updater_event) => match updater_event {
UpdaterEvent::Error(e) => {
error!(target: LOG_TARGET, "Updater error: {:?}", e);
}
_ => {
info!(target: LOG_TARGET, "Updater event: {:?}", updater_event);
}
app.run(move |_app_handle, event| match event {
tauri::RunEvent::Updater(updater_event) => match updater_event {
UpdaterEvent::Error(e) => {
error!(target: LOG_TARGET, "Updater error: {:?}", e);
}
_ => {
info!(target: LOG_TARGET, "Updater event: {:?}", updater_event);
}
},
tauri::RunEvent::ExitRequested { api: _, .. } | tauri::RunEvent::Exit => {
// api.prevent_exit();
Expand Down

0 comments on commit 5f27466

Please sign in to comment.