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

On File > Exit, the 'Save Changes' dialog displays after no changes AND again after clicking 'No' button in the dialog #154

Open
esellers-usgs opened this issue Jul 8, 2022 · 1 comment

Comments

@esellers-usgs
Copy link

Describe the bug
When selecting File > Exit, the 'Save Changes' dialog displays twice - even though the user made no changes to the metadata record AND including after the user clicks on the 'No' button the first time it displays. The user has to click on the 'No' button twice in two separate display instances of the 'Save Changes' dialog before the Wizard app will close.

To Reproduce
Steps to reproduce the behavior:

  1. Open Metadata Wizard desktop client app v2.0.7 on a Windows machine
  2. Using the File > Open option, browser to and open an XML metadata file
  3. Either do nothing once the file has opened or you can switch between tabs/views - without clicking in or making any changes in the fields/contents
  4. Choose File > Exit
  5. The 'Save Changes' dialog displays (the first time)
  6. Click 'No' button in the 'Save Changes' dialog
  7. The 'Save Changes' dialog display (a second time)
  8. Click 'No' button in the 'Save Changes' dialog
  9. The app closes

Expected behavior
I would not expect the 'Save Changes' dialog to display at all if I have not made any changes to the open metadata file. But if it must display, it should only display once and the app should close as expected after the user selects the 'No' button in the dialog (and no changes are made/saved to the metadata record that was open).

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: N/A - Windows desktop client app
  • Version: 2.0.7
@tnorkin
Copy link
Collaborator

tnorkin commented Jul 11, 2022

@esellers-usgs, I ran through the steps above and can confirm the behavior

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

No branches or pull requests

2 participants