-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Preferences: Remember which tab was last open within a session #24678
Comments
Hi I volunteer to try to implement this issue with help. I have been looking into the code and if I'm right:
But, it seems Preference window is created and destroyed (PreferencesModel::~PreferencesModel())every time the user asks for it. Then currentPageId is forgotten. Are there within MuseScore any method to store key Values that last while the application is running ?. That could be a way to store the PreferenceCurrentPageId keyValue and restore within PreferencesModel::load if currentPageId is empty Kind Regards |
@pacebes I can't find a specific code example for you (I am but a humble UX designer), but the code for the Format > Style... dialog might be helpful to look at. That dialog remembers the last "tab" that was open from the list on the left when you close and open it. |
@pacebes The (I)AppShellConfiguration class lives for the entire session. You could use that to store the ID of the last opened page. Most method from that class return values from |
Hi Thanks @cbjeukendrup, I have a working version with the following changes (Just to check if they are "acceptable"). If you assign this issue to me I can create a pull request on the current version.
|
@pacebes That looks about right! There are some stylistic details, but those are easier to point out when you open the Pull Request, because then I can comment on individual lines. In general, make sure that the indentation is correct, and that there are no multiple blank lines in a row (one is enough) and that there are no blank lines before a Also, note that names of member fields should start with For the rest I'll check it in the Pull Request itself! |
I don't know if I should ask about them here or in the pull request... I created the pull request which failed because of "Codestyle / codestyle". I have run " tools/codestyle/uncrustify_run_file.sh" on them and then
I have tried to push it again and I get
But I'm not sure if this is the right option. Could you help me with that ? Or perhaps it could be easier if you reject the previous pull request and I create a new one from the scratch |
Amending the existing pull request is preferable. If you run
However, because it will be a force-push in this case, you need to add the
|
…thinSession Fix #24678: Remember which tab was last open within a session
Your idea
The Preferences window currently always opens to the 'General' tab. If I switch to a different tab, close the window, and reopen it, it should open to the last tab I had open.
If I quit and reopen MuseScore Studio, it should start back on the 'General' tab.
Problem to be solved
This would remove the extra step of pointing and clicking back to where you were if you're trying to stay focused on one area of preferences (i.e. setting up a bunch of shortcuts or changing appearance).
Prior art
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: