Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DeskTop: Untangle menu state update for windows and shortcuts
* Update DeskTop's main loop to not check window validity and update menu item states on just a mouse move, since that can't change the application state. This allows the following changes without compromising performance. * Back to the MouseDesk code, DeskTop had logic to conditionally refresh the "Selector" (now "Shortcut") menu item enable/disable states when the contents were modified, with a global flag. Since overall logic and performance has improved, just do this unconditionally. * Update menu item states that require a window (e.g. "Close") and the View menu checkbox in the main loop, rather than requiring all places that might modify the state (e.g. window open, window close, view menu action) to make the right calls. ... and consolidate all of the updating logic into one proc, to ease maintenance. The simplification saves ~100 bytes. No functional changes - I hope!
- Loading branch information