mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update main.js
This commit is contained in:
parent
5c1ceaeba4
commit
9236307c39
@ -6,7 +6,7 @@ const { pathToFileURL } = require("url");
|
||||
const { checkForUpdate } = require('./updateChecker');
|
||||
let gpuAccel = "";
|
||||
let didRegisterShortcuts = false;
|
||||
let version = "2.0.0.1"
|
||||
let version = "2.0.0.2"
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
if (process.argv.includes('--use-gl')) {
|
||||
@ -190,6 +190,17 @@ if (appMenu && !appMenu.submenu.items.some(item => item.label === 'Check for Upd
|
||||
addMenuItem('Website', 'https://simpliplay.netlify.app');
|
||||
addMenuItem('Help Center', 'https://simpliplay.netlify.app/help');
|
||||
|
||||
// Check for Updates
|
||||
if (!helpMenu.submenu.items.some(item => item.label === 'Check for Updates')) {
|
||||
helpMenu.submenu.append(
|
||||
new MenuItem({
|
||||
label: 'Check for Updates',
|
||||
accelerator: 'CommandOrControl+Shift+U',
|
||||
click: () => checkForUpdate(version)
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
if (!helpMenu.submenu.items.some(item => item.label === 'Quit')) {
|
||||
helpMenu.submenu.append(new MenuItem({ type: 'separator' }));
|
||||
helpMenu.submenu.append(new MenuItem({ label: 'Quit', click: () => app.quit() }));
|
||||
|
Loading…
Reference in New Issue
Block a user