Skip to content

Commit 72febf3

Browse files
committed
fix filament mapping and add build pipeline
1 parent 0a84ce2 commit 72febf3

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Github Pull Request
5+
6+
on:
7+
pull_request:
8+
branches: [ main]
9+
push:
10+
branches: [ main]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '21'
25+
distribution: 'zulu'
26+
server-id: github
27+
settings-path: ${{ github.workspace }} # location for the settings.xml file
28+
29+
- name: Build with Maven
30+
run: ./mvnw -B package -Pproduction --file pom.xml
31+
32+
- name: Run tests
33+
run: ./mvnw -B test --file pom.xml

bambu/src/main/java/com/tfyre/bambu/view/batchprint/PrinterMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ private void setupFilamentMapping(final Div mapped, final PlateFilament plateFil
269269
setupFilament(fbottom, pf.name(), pf.color());
270270

271271
menu.addItem(newDiv("myfilament", ftop, fbottom), l -> {
272-
if (config.enforceFilamentMapping() && plateFilament.type() != pf.type()) {
272+
if (config.batchPrint().enforceFilamentMapping() && plateFilament.type() != pf.type()) {
273273
showError("Filament [%s] does not match Printer [%s]".formatted(plateFilament.type(), pf.type()));
274274
return;
275275
}

0 commit comments

Comments
 (0)