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 -->