Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, it is only possible to define settings and preferences on a global, application-level basis.
However, there are times when a user (or a plugin developer) might wish to have certain settings for one production, and different settings for another. Instead of having to manually change them globally every time a user switches between sessions, the relevant settings should be saved into the session file.
Now, I'm not saying that every setting that is settable globally should be saved into a session file - far from it. What this PR contains is a dialog that plugin developers can add
SettingsPage
s to, and the states of the options contained in said pages will be saved to and restored from the current session file.What this PR does not contain is any
SettingsPage
s that use said dialog. Thus, although a user may find the dialog (on the "Tools" toolbar menu), and the code that loads from and saves to session files is functioning, this PR is more of a Proof of Concept (PoC) than something that is instantly usable by the user.