Call storeState() when user quits via command-q or app menu quit item

Issue #481 new
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Saving the app's state should always be done when the user quits the app, regardless of the method in which the user quits.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Type command-q or select TreeView3->Quit TreeView3

CURRENT BEHAVIOR

storeState() is only called if the app is quit by clicking the window close button.

EXPECTED BEHAVIOR

storeState() should be called if the user quits by any of:

  • clicking the app window's close button
  • typing command-q
  • Selecting TreeView3->Quit TreeView3

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Need a hook to trigger a call to storeState upon all of these operations, which I believe is supposed to be possible via gradle.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

minor

COMMENTS

Comments (3)

  1. Robert Leach reporter

    This issue's priority is now higher given the recent implementation of not saving files automatically after clustering.

  2. Log in to comment