Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Per-object settings are removed when canceling new setting dialog #2627

Closed
pa0los opened this issue Apr 2, 2022 · 5 comments
Closed

Per-object settings are removed when canceling new setting dialog #2627

pa0los opened this issue Apr 2, 2022 · 5 comments
Labels
enhancement fix is live in the last release Please download /build the last release and try to reproduce. problem

Comments

@pa0los
Copy link

pa0los commented Apr 2, 2022

What happened?

It took me a while to discover why/when my per-object settings are getting removed.
On the example of custom "Width Flow" settings assigned to an object:
image
If I now open the dialog to add another Width Flow setting, I can see these 2 options checked:
image
But when I hit Cancel in this dialog box, the 2 settings that I already had are getting removed:
image

Project file & How to reproduce

Not related to a particular project.
Just add a per-object setting, open the "Add settings" dialog box again and hit cancel.

Version

2.4.58.2

Operating system

Windows 10

Printer model

No response

@supermerill
Copy link
Owner

If I change the button label to "Apply" and "Remove All", is it okay?
I'll see if I can add a third.

@pa0los
Copy link
Author

pa0los commented Apr 2, 2022

Oh I see - this is how it's supposed to work...
Renaming the buttons like you proposed would make it clear I think.

@supermerill
Copy link
Owner

It took me some hours, but I have fixed it.

  • Apply apply the selection, like the ok
  • Remove all (new) now erase the selection and apply.
  • Cancel now don't touch the items

In the codebase, it was a bit strange. some code say "cancel don't erase" and then the caller erase everything...

@supermerill supermerill added the fixed for the next version That means that you should be able to test it in the latest nightly build label Apr 3, 2022
@supermerill
Copy link
Owner

supermerill commented Apr 3, 2022

"Remove All" or "Clear" ?

I'll put clear for now because it's already a localized string.

@pa0los
Copy link
Author

pa0los commented Apr 3, 2022

If you ask me, I would only leave "apply" and "cancel" buttons.
Removing is easy enough and I can't imagine having this many settings to justify the "remove all / clear" button.
We're talking about "add setting" dialog box after all - nobody will open it to remove the settings.

@supermerill supermerill added fix is live in the last release Please download /build the last release and try to reproduce. and removed fixed for the next version That means that you should be able to test it in the latest nightly build labels Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement fix is live in the last release Please download /build the last release and try to reproduce. problem
Projects
None yet
Development

No branches or pull requests

2 participants