Update for MacOS Quit and Login behaviour

pull/110/head v1.0.130
openbuilds-engineer 2019-01-10 19:45:46 +02:00
rodzic 0502375c19
commit 65168a2b38
3 zmienionych plików z 23 dodań i 12 usunięć

6
CHANGELOG.txt 100644
Wyświetl plik

@ -0,0 +1,6 @@
v1.0.129: Enhanced Grbl Settings panel, added Laser specific hello-world
v1.0.127: Added Steps-per-mm Fine Tuning tool
v1.0.124: Added Z0 Probing
v1.0.122: Added Grbl Firmware Flashing utility
v1.0.119: Improved Tool-On and Tool-Off buttons
v1.0.117: Added Macros panel

Wyświetl plik

@ -2354,11 +2354,14 @@ if (isElectron()) {
}
//electronApp.commandLine.appendSwitch('ignore-gpu-blacklist', 'true')
//electronApp.commandLine.appendSwitch('enable-gpu-rasterization', 'true')
//electronApp.commandLine.appendSwitch('enable-zero-copy', 'true')
//electronApp.commandLine.appendSwitch('disable-software-rasterizer', 'true')
//electronApp.commandLine.appendSwitch('enable-native-gpu-memory-buffers', 'true')
if (!process.platform == 'darwin') {
electronApp.commandLine.appendSwitch('ignore-gpu-blacklist', 'true')
electronApp.commandLine.appendSwitch('enable-gpu-rasterization', 'true')
electronApp.commandLine.appendSwitch('enable-zero-copy', 'true')
electronApp.commandLine.appendSwitch('disable-software-rasterizer', 'true')
electronApp.commandLine.appendSwitch('enable-native-gpu-memory-buffers', 'true')
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
@ -2373,7 +2376,7 @@ if (isElectron()) {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
// We don't take that route, we close it completely
if(appIcon) {
if (appIcon) {
appIcon.destroy();
}
electronApp.exit(0);
@ -2396,13 +2399,15 @@ if (isElectron()) {
});
// Autostart on Login
electronApp.setLoginItemSettings({
openAtLogin: true,
args: []
})
if (!process.platform == 'darwin') {
electronApp.setLoginItemSettings({
openAtLogin: true,
args: []
})
}
}
}
process.on('exit', () => console.log('exit'))
process.on('exit', () => console.log('exit'))

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "OpenBuildsCONTROL",
"version": "1.0.129",
"version": "1.0.130",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds <webmaster@openbuilds.com>",