kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Fix for Ubuntu Launch GUI from Tray Icon
rodzic
01191f10b7
commit
cec00ba83d
19
index.js
19
index.js
|
@ -2080,6 +2080,23 @@ if (isElectron()) {
|
|||
nativeImage.createFromPath(iconPath)
|
||||
)
|
||||
const contextMenu = Menu.buildFromTemplate([{
|
||||
label: 'Open User Interface (GUI)',
|
||||
click() {
|
||||
// console.log("Clicked Systray")
|
||||
if (jogWindow === null) {
|
||||
createJogWindow();
|
||||
jogWindow.show()
|
||||
jogWindow.setAlwaysOnTop(true);
|
||||
jogWindow.focus();
|
||||
jogWindow.setAlwaysOnTop(false);
|
||||
} else {
|
||||
jogWindow.show()
|
||||
jogWindow.setAlwaysOnTop(true);
|
||||
jogWindow.focus();
|
||||
jogWindow.setAlwaysOnTop(false);
|
||||
}
|
||||
}
|
||||
},{
|
||||
label: 'Quit Machine Driver (Disables all integration until started again)',
|
||||
click() {
|
||||
appIcon.destroy();
|
||||
|
@ -2232,4 +2249,4 @@ if (isElectron()) {
|
|||
|
||||
|
||||
|
||||
process.on('exit', () => console.log('exit'))
|
||||
process.on('exit', () => console.log('exit'))
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsMachineDriver",
|
||||
"version": "1.0.112",
|
||||
"version": "1.0.113",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "Machine Interface Driver for OpenBuilds",
|
||||
"author": "github.com/openbuilds <webmaster@openbuilds.com>",
|
||||
|
|
Ładowanie…
Reference in New Issue