-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Create an uber Settings struct that's designed to be persistent. - Define the HasSettings trait to make management more consistent. - Create smaller Settings structs for things that have settings. - Modify those things to take an &mut to their Settings struct. - Add settings load/save code to the sample app. - Separate out the widget code to take the appropriate &mut Settings and manipulate it, using the setters that automatically deal with HasSettings clean/dirty state. - On the very first usage, create an exception -- MIDI needs to update the connected interface according to Settings changes, so update the widget to communicate when a port changes, and let SettingsPanel catch that and pass it back to MidiPanel. Audio settings don't yet have settable settings, so I didn't do anything with it except move it over to the new system. This is enough to close #154. I'll add a separate issue for audio settings.
- Loading branch information
Showing
10 changed files
with
430 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.