From 6f06f81f067b887174ccfa85dba52085d3183d5a Mon Sep 17 00:00:00 2001 From: llama Date: Sat, 18 Oct 2025 10:52:00 +0800 Subject: [PATCH] ./check --- qt/launcher-gui/src-tauri/src/platform/mod.rs | 2 +- qt/launcher-gui/src-tauri/src/state.rs | 5 +---- qt/launcher-gui/src/routes/Action.svelte | 6 +++--- qt/launcher-gui/src/routes/Start.svelte | 2 +- qt/launcher-gui/src/routes/stores.ts | 2 +- ts/lib/generated/post.ts | 5 ++--- ts/lib/tslib/platform.ts | 5 ----- 7 files changed, 9 insertions(+), 18 deletions(-) diff --git a/qt/launcher-gui/src-tauri/src/platform/mod.rs b/qt/launcher-gui/src-tauri/src/platform/mod.rs index 07af93720..f1b49ac10 100644 --- a/qt/launcher-gui/src-tauri/src/platform/mod.rs +++ b/qt/launcher-gui/src-tauri/src/platform/mod.rs @@ -4,7 +4,7 @@ #[cfg(all(unix, not(target_os = "macos")))] pub mod unix; -// #[cfg(target_os = "macos")] +#[cfg(target_os = "macos")] pub mod mac; #[cfg(target_os = "windows")] diff --git a/qt/launcher-gui/src-tauri/src/state.rs b/qt/launcher-gui/src-tauri/src/state.rs index 09cde5ef4..f56a23447 100644 --- a/qt/launcher-gui/src-tauri/src/state.rs +++ b/qt/launcher-gui/src-tauri/src/state.rs @@ -73,6 +73,7 @@ impl From for State { pub enum State { LaunchAnki(Arc), + #[allow(dead_code)] // TODO: use Error(anyhow::Error), Uninstall(Arc), Normal(NormalState), @@ -94,10 +95,6 @@ impl State { _ => Err(anyhow!("unexpected state")), } } - - pub fn should_launch_anki(&self) -> bool { - matches!(self, State::LaunchAnki(_)) - } } impl NormalState { diff --git a/qt/launcher-gui/src/routes/Action.svelte b/qt/launcher-gui/src/routes/Action.svelte index 1aa6d5f6c..d01c9185d 100644 --- a/qt/launcher-gui/src/routes/Action.svelte +++ b/qt/launcher-gui/src/routes/Action.svelte @@ -4,7 +4,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->