Skip to content

Commit 87eec42

Browse files
authored
Merge pull request #2913 from haslinghuis/fix-freezing
Fix freezing of configurator while loading local firmware and OSD preview while moving elements on Linux
2 parents d359bcf + 2cb90b1 commit 87eec42

File tree

9 files changed

+13
-9
lines changed

9 files changed

+13
-9
lines changed

.github/workflows/artifact-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
artifacts-url-comments:
99
name: Add artifact links to PR and issues
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: Add artifact links to PR and issues
1313
uses: tonyhallett/[email protected]

.github/workflows/build-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
release:
1717
name: Attach Release Artifacts
1818
needs: ci
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020
steps:
2121
- name: Code Checkout
2222
uses: actions/checkout@v2

.github/workflows/hide-artifact-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
hide-artifacts-link-comments:
99
name: Hide artifact links
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: Hide comments
1313
uses: int128/hide-comment-action@v1

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
release:
3131
name: Nightly release
3232
needs: ci
33-
runs-on: ubuntu-20.04
33+
runs-on: ubuntu-22.04
3434
steps:
3535
- name: Fetch build artifacts
3636
uses: actions/download-artifact@v2

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
release:
3232
name: Release
3333
needs: ci
34-
runs-on: ubuntu-20.04
34+
runs-on: ubuntu-22.04
3535
steps:
3636
- name: Fetch build artifacts
3737
uses: actions/download-artifact@v2

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.18.2
1+
16.15.0

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const NODE_ENV = process.env.NODE_ENV || 'production';
4848
const NAME_REGEX = /-/g;
4949

5050
const nwBuilderOptions = {
51-
version: os.platform() === 'linux' ? '0.54.1' : '0.60.0', // linux has a bug with moving OSD elements
51+
version: '0.62.0',
5252
files: `${DIST_DIR}**/*`,
5353
macIcns: './src/images/bf_icon.icns',
5454
macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"author": "The Betaflight open source project.",
4949
"license": "GPL-3.0",
5050
"engines": {
51-
"node": "14.x"
51+
"node": "16.x"
5252
},
5353
"dependencies": {
5454
"@fortawesome/fontawesome-free": "^5.13.0",

src/js/tabs/osd.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,11 @@ OSD.GUI.preview = {
23522352
ev.dataTransfer.setData("text/plain", $(ev.target).data('field').index);
23532353
ev.dataTransfer.setData("x", ev.currentTarget.dataset.x);
23542354
ev.dataTransfer.setData("y", ev.currentTarget.dataset.y);
2355-
ev.dataTransfer.setDragImage($(this).data('field').preview_img, offsetX, offsetY);
2355+
2356+
if (GUI.operating_system !== "Linux") {
2357+
// latest NW.js (0.6x.x) has introduced an issue with Linux displaying a rectangle while moving an element
2358+
ev.dataTransfer.setDragImage($(this).data('field').preview_img, offsetX, offsetY);
2359+
}
23562360
},
23572361
onDragOver(e) {
23582362
const ev = e.originalEvent;

0 commit comments

Comments
 (0)