Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: don't override gcode_macro variables with stale values #1355

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

matmen
Copy link
Member

@matmen matmen commented Feb 11, 2024

When a macro is edited via the UI it saves a copy of it in the database, which is then used to override some default settings. It looks like this also overrides the macros variables, so they will never change as far as the UI is concerned.

Fixes #1269 not showing up

Signed-off-by: Mathis Mensing <github@matmen.dev>
@matmen matmen added the GH - Bug Something isn't working label Feb 11, 2024
@matmen matmen added this to the 1.28.1 milestone Feb 11, 2024
@matmen matmen changed the title fix: don't override gcode_macro variables/config with stale values fix: don't override gcode_macro variables with stale values Feb 11, 2024
@pedrolamas
Copy link
Member

Indeed, this will fix this specific problem, but I have a feeling we are storing more than we should on the database (probably because of some of my refactorings...)

@matmen matmen merged commit 74def24 into fluidd-core:develop Feb 11, 2024
6 checks passed
@matmen
Copy link
Member Author

matmen commented Feb 11, 2024

Yep, I agree - we should only be storing the values that can actually be changed through the UI..

@matmen matmen deleted the fix/macro-assign-order branch February 11, 2024 15:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
GH - Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spoolman integration: multiple extruders/spools
2 participants