Skip to content

Commit 678a0ad

Browse files
committed
r0b08x [chore] 2/18/2021, 11:43:24 AM
1 parent 06b550d commit 678a0ad

File tree

9 files changed

+30
-17
lines changed

9 files changed

+30
-17
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
@license p3x-onenote v2021.4.132
2+
@license p3x-onenote v2021.4.134
33

44
📚 P3X OneNote Linux
55

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
# 📚 P3X OneNote Linux v2021.4.132
14+
# 📚 P3X OneNote Linux v2021.4.134
1515

1616

1717

@@ -229,7 +229,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
229229

230230
---
231231

232-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.132
232+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.134
233233

234234
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
235235

artifacts/arm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
2525

2626
---
2727

28-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.132
28+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.134
2929

3030
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
3131

artifacts/new-language.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
2525

2626
---
2727

28-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.132
28+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.134
2929

3030
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
3131

artifacts/npm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
3838

3939
---
4040

41-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.132
41+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.134
4242

4343
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
4444

changelog.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
## Change log
99

10+
### v2021.4.136
11+
* BUGFIX: The tray is more stable, but it is a hack, not perfect.
12+
1013
### v2021.4.132
1114
* BUGFIX: The tray is more stable, but it is a hack, not perfect.
1215

@@ -228,7 +231,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
228231

229232
---
230233

231-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.132
234+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.4.134
232235

233236
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
234237

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p3x-onenote",
3-
"version": "2021.4.132",
3+
"version": "2021.4.134",
44
"description": "📚 P3X OneNote Linux",
55
"main": "src/electron/app.js",
66
"corifeus": {

src/electron/main/create/menu.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -125,20 +125,22 @@ function mainMenu() {
125125
if (global.p3x.onenote.disableHide === true && global.p3x.onenote.tray !== undefined) {
126126
message += `
127127
128-
${global.p3x.onenote.lang.restart}`
128+
${global.p3x.onenote.lang.restart}
129+
130+
${global.p3x.onenote.lang.slow}
131+
`
129132
}
130133

131-
/*
132-
dialog.showMessageBoxSync( global.p3x.onenote.window.onenote, {
134+
dialog.showMessageBox( global.p3x.onenote.window.onenote, {
133135
type: 'info',
134136
title: global.p3x.onenote.lang.dialog.minimizationBehavior.title,
135137
message: message,
136138
buttons: [global.p3x.onenote.lang.button.ok]
139+
}).then(() => {
140+
console.log('reloading tray settings')
141+
mainMenu()
142+
mainTray({ allowQuit: true })
137143
})
138-
*/
139-
140-
mainMenu()
141-
mainTray()
142144

143145
} catch(e) {
144146
console.error(e)

src/electron/main/create/tray.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ const destroyTray = () => {
1010
}
1111
}
1212

13-
function mainTray() {
13+
function mainTray(opts) {
14+
15+
if (opts === undefined) {
16+
opts = {
17+
allowQuit: false
18+
}
19+
}
1420

1521
// app.whenReady().then(() => {
1622
//destroyTray();
@@ -33,10 +39,12 @@ function mainTray() {
3339
const contextMenu = Menu.buildFromTemplate(menu)
3440
global.p3x.onenote.tray.setContextMenu(contextMenu)
3541

36-
} else if (global.p3x.onenote.tray !== undefined) {
42+
} else if (global.p3x.onenote.tray !== undefined && opts.allowQuit === true) {
3743
let { args } = require('electron')
3844
//console.log('args', args, 'process.env.APPIMAGE', process.env.APPIMAGE)
3945

46+
//console.trace()
47+
4048
if (process.env.APPIMAGE) {
4149
if (args === undefined) {
4250
args = []

0 commit comments

Comments
 (0)