diff --git a/src-tauri/src/features/instance_sync.rs b/src-tauri/src/features/instance_sync.rs index 1949e78..68d9413 100644 --- a/src-tauri/src/features/instance_sync.rs +++ b/src-tauri/src/features/instance_sync.rs @@ -18,9 +18,11 @@ impl Feature for InstanceSync { &mut self, state: &State<'_, SharedState>, version: &GameVersion, - account: &MinecraftAccount, + _account: &MinecraftAccount, ) -> super::FeatureResult { - sync_to_instance(version).map_err(|e| e.to_string())?; + if state.lock().unwrap().settings.features.sync_options { + sync_to_instance(version).map_err(|e| e.to_string())?; + } Ok(()) } @@ -29,9 +31,11 @@ impl Feature for InstanceSync { &mut self, state: &State<'_, SharedState>, version: &GameVersion, - account: &MinecraftAccount, + _account: &MinecraftAccount, ) -> super::FeatureResult { - sync_back_from_instance(version).map_err(|e| e.to_string())?; + if state.lock().unwrap().settings.features.sync_options { + sync_back_from_instance(version).map_err(|e| e.to_string())?; + } Ok(()) } diff --git a/src/components/SettingsSection.tsx b/src/components/SettingsSection.tsx index e076293..bcf9928 100644 --- a/src/components/SettingsSection.tsx +++ b/src/components/SettingsSection.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { Save, RefreshCcw, Info } from "lucide-react"; +import { Save, RefreshCcw } from "lucide-react"; import { getSettings, updateSettings } from "../lib/saturn"; import { LauncherSettings } from "@/lib/types"; @@ -45,6 +45,7 @@ export const settingsSchema: SettingSchemaItem[] = [ max: 16384, step: 512, default: 2048, + ticks: [1024, 4096, 8192, 12288, 16384], format: (v) => `${(v / 1024).toFixed(1)} GB`, }, @@ -112,8 +113,11 @@ const SettingItem: React.FC<{ return (