custom scrollbars, portable storage, window state persistence

This commit is contained in:
2026-02-15 22:18:50 +02:00
parent f4c4fdee81
commit 545ac3b637
8 changed files with 130 additions and 9 deletions

View File

@@ -7,18 +7,18 @@ import {
remove,
copyFile,
} from "@tauri-apps/plugin-fs";
import { appDataDir, join } from "@tauri-apps/api/path";
import { join } from "@tauri-apps/api/path";
import { invoke } from "@tauri-apps/api/core";
import { boardSchema, appSettingsSchema } from "./schemas";
import type { Board, BoardMeta } from "@/types/board";
import type { AppSettings } from "@/types/settings";
// ---------------------------------------------------------------------------
// Path helpers
// Path helpers - portable: all data lives next to the exe
// ---------------------------------------------------------------------------
async function getBaseDir(): Promise<string> {
const base = await appDataDir();
return join(base, "openpylon");
return invoke<string>("get_portable_data_dir");
}
async function getBoardsDir(): Promise<string> {