From ca70757e7daa53a9682976e5a5d90ef5388a2ba9 Mon Sep 17 00:00:00 2001 From: Ben C Date: Wed, 7 Jan 2026 12:07:18 -0500 Subject: [PATCH] [CHORE] Format --- Cargo.lock | 2 +- owmods_gui/backend/src/main.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ddfa7809..ee45ddc9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3138,7 +3138,7 @@ dependencies = [ [[package]] name = "owmods_gui" -version = "0.15.2" +version = "0.15.4" dependencies = [ "anyhow", "log", diff --git a/owmods_gui/backend/src/main.rs b/owmods_gui/backend/src/main.rs index 8fe4a33e..8120ff1e 100644 --- a/owmods_gui/backend/src/main.rs +++ b/owmods_gui/backend/src/main.rs @@ -96,7 +96,9 @@ pub struct State { #[cfg(feature = "updater")] async fn update(app: tauri::AppHandle) -> error::Result { use anyhow::Context; - use tauri_plugin_dialog::{MessageDialogButtons, MessageDialogKind, MessageDialogResult, DialogExt}; + use tauri_plugin_dialog::{ + DialogExt, MessageDialogButtons, MessageDialogKind, MessageDialogResult, + }; use tauri_plugin_updater::UpdaterExt; let skip = std::env::var("OWMM_NO_UPDATES").is_ok_and(|s| s == "1"); @@ -135,7 +137,7 @@ async fn update(app: tauri::AppHandle) -> error::Result { }); let res = rx.await.context("While prompting user about the update")?; - + if let MessageDialogResult::No = res { return Ok(()); } -- 2.51.2