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

Desktop: Fixes #11823: Fixed "cancel" behavior when switching config screens #11896

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rio-codes
Copy link
Contributor

Issue #11823 describes behavior where clicking cancel on the dialog "This will open a new screen. Save your current changes?" switches screens anyway and retains changes. Added "else" statement to return the switchSection function on cancel before it reaches this.setState({ selectedSectionName: section.name, screenName: screenName });.

I had a typo in my Github email address so it did not recognize me as a contributor in the previous PR. Re-submitting with corrected email.

@laurent22
Copy link
Owner

I think it currently works as designed. It's supposed to be like this:

  • Press OK - save changes and move to next screen
  • Press Cancel - don't save the changes and move to the next screen

Maybe we need something like Yes/no/Cancel to either save, not save and move to next screen, or stay where we are

@mrjo118
Copy link
Contributor

mrjo118 commented Feb 27, 2025

I think it currently works as designed. It's supposed to be like this:

* Press OK - save changes and move to next screen

* Press Cancel - don't save the changes and move to the next screen

Maybe we need something like Yes/no/Cancel to either save, not save and move to next screen, or stay where we are

Isn't the whole point in prompting the user to save due to switching to another screen, in order to prevent the user switching to a screen that contains auto saving configuration settings, while the user still has unsaved changes?

On mobile the equivalent dialog is different. It instead gives the option to either save changes or discard changes, rather than allowing the user to proceed with unsaved changes still pending

@rio-codes
Copy link
Contributor Author

To me, the wording "This will open a new screen" combined with "Cancel" reads as "Don't open a new screen".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants