mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
parent
773f7bee9e
commit
8151343787
1 changed files with 4 additions and 2 deletions
|
|
@ -347,10 +347,12 @@ class Background {
|
||||||
}
|
}
|
||||||
|
|
||||||
// create dock menu for macOS
|
// create dock menu for macOS
|
||||||
app.dock.setMenu(createDockMenu(this.window));
|
const createdDockMenu = createDockMenu(this.window);
|
||||||
|
if (createDockMenu && app.dock) app.dock.setMenu(createdDockMenu);
|
||||||
|
|
||||||
// create touch bar
|
// create touch bar
|
||||||
this.window.setTouchBar(createTouchBar(this.window));
|
const createdTouchBar = createTouchBar(this.window);
|
||||||
|
if (createdTouchBar) this.window.setTouchBar(createdTouchBar);
|
||||||
|
|
||||||
// register global shortcuts
|
// register global shortcuts
|
||||||
if (this.store.get('settings.enableGlobalShortcut') !== false) {
|
if (this.store.get('settings.enableGlobalShortcut') !== false) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue