macOS Changes

onStartup implemented
This commit is contained in:
Core 2022-03-10 14:56:07 +00:00
parent bab1b0db4d
commit b71a7b22c0
6 changed files with 99 additions and 62 deletions

View file

@ -1,4 +1,5 @@
import {app, Menu, shell} from "electron";
import {utils} from "../base/utils";
export default class Thumbar {
/**
@ -76,13 +77,19 @@ export default class Thumbar {
label: 'Window',
submenu: [
{role: 'minimize'},
{
label: 'Show',
click: () => utils.getWindow().show()
},
{role: 'zoom'},
...(this.isMac ? [
{type: 'separator'},
{role: 'front'},
] : [
{role: 'close'}
{}
]),
{role: 'close'},
{type: 'separator'},
{
label: 'Edit',
submenu: [