mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 14:55:15 +03:00
Fixed window hocks and enabled restore window state on startup
This commit is contained in:
parent
fe3a444c67
commit
1cdc40cf47
2 changed files with 9 additions and 6 deletions
6
main_nwjs.html
Normal file
6
main_nwjs.html
Normal 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>
|
|
@ -2,7 +2,8 @@
|
||||||
"name": "betaflight-configurator",
|
"name": "betaflight-configurator",
|
||||||
"description": "Crossplatform configuration tool for Betaflight flight control system.",
|
"description": "Crossplatform configuration tool for Betaflight flight control system.",
|
||||||
"version": "10.0.1",
|
"version": "10.0.1",
|
||||||
"main": "main.html",
|
"main": "main_nwjs.html",
|
||||||
|
"bg-script": "eventPage.js",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node node_modules/gulp/bin/gulp.js debug",
|
"start": "node node_modules/gulp/bin/gulp.js debug",
|
||||||
|
@ -11,11 +12,7 @@
|
||||||
"gulp": "gulp"
|
"gulp": "gulp"
|
||||||
},
|
},
|
||||||
"window": {
|
"window": {
|
||||||
"title": "Betaflight Configurator",
|
"show": false
|
||||||
"icon": "images/bf_icon_128.png",
|
|
||||||
"toolbar": true,
|
|
||||||
"width": 1280,
|
|
||||||
"height": 800
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue