Skip to content

Commit bd14b32

Browse files
committed
p3x-robot sunday release 2018-5-1 22:20:39
1 parent bc4ec90 commit bd14b32

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88

9-
# 📚 P3X Onenote Linux v1.2.372-457
9+
# 📚 P3X Onenote Linux v1.2.374-458
1010

1111
This is an open-source project. Star this repository if you like it, or even donate! Thank you so much! :)
1212

@@ -141,7 +141,7 @@ https://github.com/patrikx3/onenote/issues/14
141141

142142
---
143143

144-
[**P3X-ONENOTE**](https://pages.corifeus.com/onenote) Build v1.2.372-457
144+
[**P3X-ONENOTE**](https://pages.corifeus.com/onenote) Build v1.2.374-458
145145

146146
[![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![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)
147147

artifacts/npm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Though I am using it, but some distros are different and I only use Linux Mint a
2727

2828
---
2929

30-
[**P3X-ONENOTE**](https://pages.corifeus.com/onenote) Build v1.2.372-457
30+
[**P3X-ONENOTE**](https://pages.corifeus.com/onenote) Build v1.2.374-458
3131

3232
[![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![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)
3333

package.json

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

src/electron/app.js

+4
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ function setVisible(visible = true, force = false) {
244244
conf.set('visible', visible);
245245
createMenu();
246246
createTray()
247+
248+
mainWindow.webContents.send('p3x-onenote-action', {
249+
action: 'focus'
250+
})
247251
}
248252

249253

src/electron/js/preload.js

+9
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ window.electronWindowSetup = function() {
3333

3434
ipc.on('p3x-onenote-action', function(event, data) {
3535
switch (data.action) {
36+
case 'focus':
37+
if (webview !== undefined) {
38+
webview.focus()
39+
}
40+
break;
41+
3642
case 'restart':
3743
const session = webview.getWebContents().session;
3844
session.clearStorageData(() => {
@@ -52,6 +58,9 @@ window.electronWindowSetup = function() {
5258
})
5359

5460
const webview = document.getElementById("p3x-onenote-webview");
61+
62+
webview.focus()
63+
5564
/*
5665
webview.addEventListener('did-stop-loading', function(event) {
5766
// webview.insertCSS(window.cssData);

0 commit comments

Comments
 (0)