mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
feat: update electron app with touchbar and menu.
This commit is contained in:
parent
9b03403d9d
commit
e030647720
29 changed files with 394 additions and 302 deletions
|
|
@ -4,7 +4,7 @@ const { app, Menu } = require("electron");
|
|||
|
||||
const isMac = process.platform === "darwin";
|
||||
|
||||
function createMenu(win) {
|
||||
export function createMenu(win) {
|
||||
let menu = null;
|
||||
const template = [
|
||||
...(isMac
|
||||
|
|
@ -196,5 +196,3 @@ function createMenu(win) {
|
|||
menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
}
|
||||
|
||||
module.exports = createMenu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue