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

Ask to save the current layout when closing shuffleboard #307

Merged
merged 4 commits into from
Nov 22, 2017

Conversation

SamCarlberg
Copy link
Member

Fixes #173

This is a "dumb" approach and will always ask for confirmation, even if no changes were made. Making this work appropriately would require some pretty large internal changes to keep track of when user actions are made (tie-in to #138)

Dialog screenshots

Note: the text is subject to change

save-dialog-light

save-dialog-dark

@SamCarlberg SamCarlberg added the enhancement Improves existing features label Nov 21, 2017
@bradamiller
Copy link

The save dialog pops up for me when I close by clicking on the window close icon (from the OS). But if I select File/Close I don't get the dialog.

Changes the MainWindowController.close() method to attempt to close the window rather than terminating the program
@codecov-io
Copy link

Codecov Report

Merging #307 into master will decrease coverage by 0.13%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master     #307      +/-   ##
============================================
- Coverage     20.85%   20.71%   -0.14%     
+ Complexity      444      443       -1     
============================================
  Files           203      203              
  Lines          5313     5339      +26     
  Branches        419      420       +1     
============================================
- Hits           1108     1106       -2     
- Misses         4142     4169      +27     
- Partials         63       64       +1

Copy link

@bradamiller bradamiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works much better now.

@bradamiller bradamiller merged commit c564f64 into wpilibsuite:master Nov 22, 2017
@SamCarlberg SamCarlberg deleted the fix/173 branch November 22, 2017 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants