mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 10:56:23 +08:00
parent
5c6eaa8fda
commit
d322a29b72
|
@ -347,10 +347,12 @@ class Background {
|
|||
}
|
||||
|
||||
// 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
|
||||
this.window.setTouchBar(createTouchBar(this.window));
|
||||
const createdTouchBar = createTouchBar(this.window);
|
||||
if (createdTouchBar) this.window.setTouchBar(createdTouchBar);
|
||||
|
||||
// register global shortcuts
|
||||
if (this.store.get('settings.enableGlobalShortcut') !== false) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user