Skip to content

Commit

Permalink
Updated the code with required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SidheshwarSarangal committed Jan 24, 2025
1 parent c020b84 commit f9d7588
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions td.vue/src/desktop/menu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { app, dialog } from 'electron';
import { app, dialog, BrowserWindow } from 'electron';
import path from 'path';
import logger from './logger.js';
import { isMacOS } from './utils.js';
Expand Down Expand Up @@ -154,18 +154,18 @@ export function getMenuTemplate() {
},
{ type: 'separator' },
{
label: 'about Electron', // New "About Electron" label
label: 'about Electron', // New "About Electron" label
click: () => {
const aboutWin = new BrowserWindow({
width: 300,
height: 200,
modal: true,
parent: win,
resizable: false
parent: mainWindow, // Use mainWindow as the parent if applicable
resizable: false,
});
aboutWin.loadFile('about.html'); // Load the 'about.html' file in the modal
aboutWin.loadFile('about.html'); // Load the 'about.html' file in the modal
},
...(process.platform === 'darwin' && { role: 'about' }) // Only add 'role: about' for macOS
...(process.platform === 'darwin' && { role: 'about' }), // Only add 'role: about' for macOS
},

{ role: 'about' }
Expand Down

0 comments on commit f9d7588

Please sign in to comment.