process exit

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-23 21:21:26 +02:00
parent 23f88b294e
commit a2721ec4f2
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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)
+7 -1
View File
@@ -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',