Skip to content

Commit

Permalink
hide menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrad77 committed Oct 16, 2024
1 parent 8379a27 commit f38d9b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import path from 'path';
import { app, BrowserWindow, shell, ipcMain } from 'electron';
import { autoUpdater } from 'electron-updater';
import log from 'electron-log';
import MenuBuilder from './menu';
// import MenuBuilder from './menu';
import { resolveHtmlPath } from './util';

class AppUpdater {
Expand Down Expand Up @@ -95,7 +95,7 @@ const createWindows = async () => {
});

controllerWindow.loadURL(resolveHtmlPath('index.html'));
projectorWindow.loadURL(resolveHtmlPath('index.html') + '#/projector');
projectorWindow.loadURL(`${resolveHtmlPath('index.html')}#/projector`);

controllerWindow.on('ready-to-show', () => {
if (!controllerWindow) {
Expand All @@ -114,11 +114,11 @@ const createWindows = async () => {

controllerWindow.on('closed', () => {
controllerWindow = null;
projectorWindow = null
projectorWindow = null;
});

const menuBuilder = new MenuBuilder(controllerWindow);
menuBuilder.buildMenu();
// const menuBuilder = new MenuBuilder(controllerWindow);
// menuBuilder.buildMenu();

// Open urls in the user's browser
controllerWindow.webContents.setWindowOpenHandler((edata) => {
Expand Down

0 comments on commit f38d9b5

Please sign in to comment.