process exit
Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user