Fixed window hocks and enabled restore window state on startup

10.3.x-maintenance
Bas Delfos 2017-12-08 17:19:21 +01:00
parent fe3a444c67
commit 1cdc40cf47
2 changed files with 9 additions and 6 deletions

6
main_nwjs.html Normal file
View File

@ -0,0 +1,6 @@
<script>
// Closing empty default nw.js window; we use the chrome window created in eventPage.js.
// The window created in eventPage.js also has some hocks to cleanup stuff when closing.
// Restoring window size, position and state also works out-of-the-box.
window.close();
</script>

View File

@ -2,7 +2,8 @@
"name": "betaflight-configurator",
"description": "Crossplatform configuration tool for Betaflight flight control system.",
"version": "10.0.1",
"main": "main.html",
"main": "main_nwjs.html",
"bg-script": "eventPage.js",
"default_locale": "en",
"scripts": {
"start": "node node_modules/gulp/bin/gulp.js debug",
@ -11,11 +12,7 @@
"gulp": "gulp"
},
"window": {
"title": "Betaflight Configurator",
"icon": "images/bf_icon_128.png",
"toolbar": true,
"width": 1280,
"height": 800
"show": false
},
"repository": {
"type": "git",