custom scrollbars, portable storage, window state persistence
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user