Update editor, workspace, Git services, appearance, and project guides
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { isTauri } from "@tauri-apps/api/core";
|
||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
import SettingsDialog from "./SettingsDialog.svelte";
|
||||
import WindowControls from "$lib/ui/WindowControls.svelte";
|
||||
import { DEFAULT_SETTINGS, SETTINGS_KEY, parseSettings, saveSettings, type AppSettings } from "$lib/workspace/settings";
|
||||
|
||||
let settings = $state<AppSettings>({ ...DEFAULT_SETTINGS });
|
||||
@@ -32,4 +33,5 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<SettingsDialog {settings} standalone windowError={error} onSave={save} onClose={() => void close()} />
|
||||
{#snippet controls()}<WindowControls onError={message => error = message} />{/snippet}
|
||||
<SettingsDialog {settings} standalone windowError={error} windowControls={isTauri() ? controls : undefined} onSave={save} onClose={() => void close()} />
|
||||
|
||||
Reference in New Issue
Block a user