diff --git a/lib/menu.ts b/lib/menu.ts index 05dbd06..62660ec 100644 --- a/lib/menu.ts +++ b/lib/menu.ts @@ -397,7 +397,7 @@ export async function buildMenu() { if (remotes.length === 0) { const noRemotesMenuItem = await MenuItem.new({ id: 'no-remotes', - text: 'No Remotes', + text: 'Add Remotes in Settings!', enabled: false, }) menuItems.push(noRemotesMenuItem) diff --git a/main.ts b/main.ts index 3bfa367..f5bbbe7 100644 --- a/main.ts +++ b/main.ts @@ -204,7 +204,13 @@ async function startRclone() { command.addListener('close', async (event) => { console.log('close', event) - if (event.code === 143 || (platform() === 'windows' && event.code === 1)) { + if (platform() === 'windows') { + return await exit(0) + } + + console.log('event.code', event.code) + + if (event.code === 143 || event.code === 1) { Sentry.captureException(new Error('Rclone has crashed')) const confirmed = await ask('Rclone has crashed', { title: 'Error',