close tab command

This commit is contained in:
Jan Prochazka
2021-09-28 08:26:17 +02:00
parent a03682fc8a
commit e7634a2521
3 changed files with 24 additions and 2 deletions

View File

@@ -266,6 +266,15 @@ if (hasPermission('settings/change')) {
});
}
if (electron) {
registerCommand({
id: 'file.exit',
category: 'File',
name: 'Exit',
onClick: () => electron.remote.getCurrentWindow().close(),
});
}
export function registerFileCommands({
idPrefix,
category,