From af7d4a9113493f8aa00a56b1fe6f1a33ac4fa215 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sat, 13 Sep 2025 13:47:16 +0200 Subject: [PATCH] Mount messages, disable plugin exit Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- lib/rclone/mount.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/rclone/mount.ts b/lib/rclone/mount.ts index 2980f74..13dc680 100644 --- a/lib/rclone/mount.ts +++ b/lib/rclone/mount.ts @@ -4,7 +4,6 @@ import { exists, writeFile } from '@tauri-apps/plugin-fs' import { fetch } from '@tauri-apps/plugin-http' import { revealItemInDir } from '@tauri-apps/plugin-opener' import { platform } from '@tauri-apps/plugin-os' -import { exit } from '@tauri-apps/plugin-process' import { Command } from '@tauri-apps/plugin-shell' export async function needsMountPlugin() { @@ -37,9 +36,9 @@ export async function dialogGetMountPlugin() { if (currentPlatform === 'macos') { // download fuse-t or osxfuse const wantsDownload = await ask( - "Fuse-t is required on macOS to mount remotes. You can open rclone UI again once you're done with the installation.", + "Fuse-t is required on macOS to mount remotes. You can continue the operation once you're done with the installation.", { - title: 'Mount plugin not installed', + title: 'Fuse-t not installed', kind: 'warning', okLabel: 'Download', cancelLabel: 'Cancel', @@ -52,15 +51,14 @@ export async function dialogGetMountPlugin() { const installer = await (await fetch(fuseInstallerUrl)).arrayBuffer() await writeFile(localPath, new Uint8Array(installer)) await revealItemInDir(localPath) - return await exit(0) } } if (currentPlatform === 'windows') { // download winfsp const wantsDownload = await ask( - "WinFsp is required on Windows to mount remotes. You can open rclone UI again once you're done with the installation.", + "WinFsp is required on Windows to mount remotes. You can continue the operation once you're done with the installation.", { - title: 'Mount plugin not installed', + title: 'WinFsp not installed', kind: 'warning', okLabel: 'Download', cancelLabel: 'Cancel', @@ -73,7 +71,6 @@ export async function dialogGetMountPlugin() { const installer = await (await fetch(winFspInstallerUrl)).arrayBuffer() await writeFile(localPath, new Uint8Array(installer)) await revealItemInDir(localPath) - return await exit(0) } } }