From a31208440e248cf01cd7b46c581b87ab45b9824e Mon Sep 17 00:00:00 2001 From: KwongTN <5886584+kwongtn@users.noreply.github.com> Date: Mon, 19 Oct 2020 05:47:27 +0800 Subject: [PATCH] Add menu item to relaunch Caprine (#1410) --- source/menu.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/source/menu.ts b/source/menu.ts index 6a77be8a0..9ff9f5e3b 100644 --- a/source/menu.ts +++ b/source/menu.ts @@ -717,7 +717,17 @@ ${debugInfo()}`; { type: 'separator' }, - ...switchItems + ...switchItems, + { + type: 'separator' + }, + { + label: 'Relaunch Caprine', + click() { + app.relaunch(); + app.quit(); + } + } ]), { role: 'fileMenu', @@ -777,6 +787,13 @@ ${debugInfo()}`; { type: 'separator' }, + { + label: 'Relaunch Caprine', + click() { + app.relaunch(); + app.quit(); + } + }, { role: 'quit' }