fix(driver): keep custom store paths consistent

This commit is contained in:
t8y2 committed 2026-06-20 23:58:38 +08:00
1 parent a1e39333a3
commit f32298743d
5 files changed
+131 -16

No files matched your search

@@ -130,6 +130,13 @@ async function applyDriverStoreDir(kind: DriverStoreDirKind, newDir: string | nu
settingsStore.desktopSettings.driver_store_dir = result.driver_store_dir;
settingsStore.desktopSettings.plugin_store_dir = result.plugin_store_dir;
settingsStore.desktopSettings.agent_store_dir = result.agent_store_dir;
currentDriverStorePath.value = {
driver_store_dir: result.driver_store_dir,
plugin_store_dir: result.plugin_store_dir,
agent_store_dir: result.agent_store_dir,
plugins_dir: result.plugins_dir,
agents_dir: result.agents_dir,
};
toast(t("driverStore.driverStoreDirSuccess", { target }));
// Restart the app to use the new paths
const { relaunch } = await import("@tauri-apps/plugin-process");