Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/betaflight/betaflight-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Haslinghuis <mark@numloq.nl>2022-05-03 03:52:44 +0300
committerMark Haslinghuis <mark@numloq.nl>2022-05-11 03:45:04 +0300
commit2cb90b13a343fe0a8f160cc3f87f50e76c658e12 (patch)
treeafbcc96b903b07ad94e91d7ce8e8c26269aed0c8
parentaf0f2aa44455c6dafd3a3a29752b13f215ab135c (diff)
Fix-freezing
Bump ubuntu version in workflow
-rw-r--r--.github/workflows/artifact-links.yml2
-rw-r--r--.github/workflows/build-release.yml2
-rw-r--r--.github/workflows/hide-artifact-links.yml2
-rw-r--r--.github/workflows/nightly.yml2
-rw-r--r--.github/workflows/release.yml2
-rw-r--r--.nvmrc2
-rw-r--r--gulpfile.js2
-rw-r--r--package.json2
-rw-r--r--src/js/tabs/osd.js6
9 files changed, 13 insertions, 9 deletions
diff --git a/.github/workflows/artifact-links.yml b/.github/workflows/artifact-links.yml
index d2ea7736..411d0fb2 100644
--- a/.github/workflows/artifact-links.yml
+++ b/.github/workflows/artifact-links.yml
@@ -7,7 +7,7 @@ on:
jobs:
artifacts-url-comments:
name: Add artifact links to PR and issues
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- name: Add artifact links to PR and issues
uses: tonyhallett/artifacts-url-comments@v1.1.0
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index 97810cbf..9ac12115 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -16,7 +16,7 @@ jobs:
release:
name: Attach Release Artifacts
needs: ci
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- name: Code Checkout
uses: actions/checkout@v2
diff --git a/.github/workflows/hide-artifact-links.yml b/.github/workflows/hide-artifact-links.yml
index 5f61c9e7..3312ee7c 100644
--- a/.github/workflows/hide-artifact-links.yml
+++ b/.github/workflows/hide-artifact-links.yml
@@ -7,7 +7,7 @@ on:
jobs:
hide-artifacts-link-comments:
name: Hide artifact links
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- name: Hide comments
uses: int128/hide-comment-action@v1
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 935d9061..ed07a355 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -30,7 +30,7 @@ jobs:
release:
name: Nightly release
needs: ci
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- name: Fetch build artifacts
uses: actions/download-artifact@v2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cc5b9c80..7d3e5c33 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -31,7 +31,7 @@ jobs:
release:
name: Release
needs: ci
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- name: Fetch build artifacts
uses: actions/download-artifact@v2
diff --git a/.nvmrc b/.nvmrc
index ed9f5a0a..99cdd800 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-14.18.2
+16.15.0
diff --git a/gulpfile.js b/gulpfile.js
index 946c9295..c094db34 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -48,7 +48,7 @@ const NODE_ENV = process.env.NODE_ENV || 'production';
const NAME_REGEX = /-/g;
const nwBuilderOptions = {
- version: os.platform() === 'linux' ? '0.54.1' : '0.60.0', // linux has a bug with moving OSD elements
+ version: '0.62.0',
files: `${DIST_DIR}**/*`,
macIcns: './src/images/bf_icon.icns',
macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'},
diff --git a/package.json b/package.json
index e5ff7ea5..dc08f95e 100644
--- a/package.json
+++ b/package.json
@@ -48,7 +48,7 @@
"author": "The Betaflight open source project.",
"license": "GPL-3.0",
"engines": {
- "node": "14.x"
+ "node": "16.x"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.13.0",
diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js
index d4e7c718..d949b30d 100644
--- a/src/js/tabs/osd.js
+++ b/src/js/tabs/osd.js
@@ -2352,7 +2352,11 @@ OSD.GUI.preview = {
ev.dataTransfer.setData("text/plain", $(ev.target).data('field').index);
ev.dataTransfer.setData("x", ev.currentTarget.dataset.x);
ev.dataTransfer.setData("y", ev.currentTarget.dataset.y);
- ev.dataTransfer.setDragImage($(this).data('field').preview_img, offsetX, offsetY);
+
+ if (GUI.operating_system !== "Linux") {
+ // latest NW.js (0.6x.x) has introduced an issue with Linux displaying a rectangle while moving an element
+ ev.dataTransfer.setDragImage($(this).data('field').preview_img, offsetX, offsetY);
+ }
},
onDragOver(e) {
const ev = e.originalEvent;