GUI preferences with custom workspace not saving/loading after change
Reported version
3.0
Priority
P2 - Medium
Type
Graphical (UI)
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
OS: Windows 7 SP 1 (6.1), Arch.: x86_64, MuseScore version (64-bit): 3.0.0.3963, revision: 0ef5104
Steps:
1) Default score
2) Create custom workspace -> Tick "GUI" Preferences -> Save
3) Edit -> Preferences/General
4) Change as you want Font, Font Size, Icon Width, Icon Height
5) OK
(as expected, the changes are applied)
6) Close/Exit the program
7) Restart
Result: all settings are lost
Comments
I cannot reproduce using a default environment, but I know the results will depend on a few things, so here is some additional info:
These settings can be saved either globally or to your current workspace - at least that is how it is supposed to work. If, when creating a workspace, you check the "GUI Preferences" box as one of the items to save, then it is saved as part of that workspace, so you can have different workspaces with different GUI (font, icon size, etc) settings. The default Basic and Advanced workspaces should have this option turned off, so the preferences are saved globally.
I am currently in the Advanced workspace with no modifications. So for me, the GUI settings are saved globally, and they survive close / restart just fine. They also survive changing to the Basic workspace just fine. If I create a custom workspace and leave the "GUI Preferences" turned off, then the same thing happens - the settings get saved globally, so they do survive a close/restart, and they continue to survive if I switch back to Advanced or Basic.
The only time I see anything unexpected is if I try checking the "GUI Preferences" in my custom workspace. In this case, it seems they don't get saved properly. I am not 100% sure I understand how this is supposed to work, but will try to look into it.
Meanwhile, can you confirm you are in a custom workspace and you have that option checked in View / Workspaces / Edit? And tell more about the order in which you did things - when you changed the font size, when you created the workspace, did you change workspaces at any point in this, etc?
" and they continue to survive if I switch back to Advanced or Basic."
Agreed.
"The only time I see anything unexpected is if I try checking the "GUI Preferences" in my custom workspace. In this case, it seems they don't get saved properly"
This is exactly the problem. I am/was in a custom workspace. And with GUI Preferences checked, the settings are lost.
Title change and new steps in first edited message (added step#2, for create a custom workspace)
OK, thanks for the confirmation. Somehow the setting to save GUI preferences within workspaces isn't doing what you or I expect. I do recall when this was implemented (as part of GSoC) some amount of discussion about it should work. I will need to revisit those discussions.
Looking into it myself. It seems there is definitely an issue and what you are experiencing is not correct behavior. Simple test without closing:
1. Create workspace with GUI preferences checked
2. Change font size/family icon width/height.
3. Switch to Basic and then back to the new workspace.
Expected: font size/family and icon width/height return to the new values saved to the new workspace.
Actual: They revert back to whatever basic/advanced is.
Expect a PR shortly.
Seems this is an issue with all GUI preferences. They save, but they are not loading properly. Adjusting the title accordingly.
https://github.com/musescore/MuseScore/pull/4248
Fixed in branch master, commit 0647b5b0cb
Fix #278873: GUI preferences with custom workspace not saving/loading after change
Fixed in branch master, commit a0ebd775a4
Merge pull request #4248 from JoshuaBonn1/278873-workspace-gui-saving
Fix #278873: GUI preferences with custom workspace not saving/loading…
Automatically closed -- issue fixed for 2 weeks with no activity.