From a199d4a80b2b6763175b6d589bf7451223d979bd Mon Sep 17 00:00:00 2001
From: LynithDev <61880709+LynithDev@users.noreply.github.com>
Date: Wed, 7 Aug 2024 11:52:12 +0200
Subject: [PATCH] chore: Some small things
---
Cargo.lock | 1 +
apps/desktop/Cargo.toml | 1 +
apps/desktop/src/api/commands/users.rs | 22 ++++++++++++++++------
apps/frontend/src/ui/hooks/useSettings.tsx | 1 -
4 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index ba73d8c8..a584bb6d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3493,6 +3493,7 @@ dependencies = [
"objc",
"once_cell",
"onelauncher",
+ "onelauncher_macros",
"serde",
"serde_json",
"specta",
diff --git a/apps/desktop/Cargo.toml b/apps/desktop/Cargo.toml
index 77753868..07606842 100644
--- a/apps/desktop/Cargo.toml
+++ b/apps/desktop/Cargo.toml
@@ -24,6 +24,7 @@ tauri-build = { workspace = true, features = [ "isolation" ] }
[dependencies]
onelauncher = { workspace = true, features = [ "tauri" ] }
+onelauncher_macros = { workspace = true }
tauri-plugin-shell = { workspace = true }
tauri-plugin-window-state = { workspace = true }
diff --git a/apps/desktop/src/api/commands/users.rs b/apps/desktop/src/api/commands/users.rs
index 995ef896..bd950522 100644
--- a/apps/desktop/src/api/commands/users.rs
+++ b/apps/desktop/src/api/commands/users.rs
@@ -1,4 +1,4 @@
-use onelauncher::data::MinecraftCredentials;
+use onelauncher::{data::MinecraftCredentials, store::MinecraftLogin};
use onelauncher::minecraft;
use tauri::{AppHandle, Manager};
use uuid::Uuid;
@@ -43,6 +43,16 @@ pub async fn set_default_user(uuid: Uuid) -> Result<(), String> {
#[tauri::command]
pub async fn auth_login(handle: AppHandle) -> Result