recent menu
This commit is contained in:
1 parent
677815572c
commit
e58ae18f79
2 files changed
+40
-10
No files matched your search
@@ -25,7 +25,6 @@ export class MainProcess {
|
||||
|
||||
createWindow (){
|
||||
this.settings = new Settings();
|
||||
this.appMenu = new AppMenu(this);
|
||||
this.mainWindow = new BrowserWindow({
|
||||
width: 1280,
|
||||
height: 800,
|
||||
@@ -40,11 +39,11 @@ export class MainProcess {
|
||||
this.mainWindow.on('closed', function () {
|
||||
this.mainWindow = null
|
||||
});
|
||||
this.appMenu = new AppMenu(this);
|
||||
this.rebuildMenu();
|
||||
}
|
||||
|
||||
rebuildMenu() {
|
||||
console.log("rebuild menu");
|
||||
Menu.setApplicationMenu(this.appMenu.createMenu());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user