-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Correct IScriptsManager resolution in Settings dialog #11254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me
BTW: The ScriptsSettingsPage takes much time for loading (not caused by the DI refactorings).
I think, it's always been quite slow.
There could be few opportunities to improve by making the scripts loading
async, as well as moving away from xml serialisation.
|
Well, the settings page opens now. But the script settings aren't being saved. Going to try to investigate. |
Okay, I figured it out. Also, I hate everything about the way Last, but not least, it should probably not be inside a function, so it can be used to do a sanity check on saved settings, and not just loaded ones. Finally, the having a proxy version of the script binding interface should have probably been reserved for being able to deserialize older versions of the XML (e.g. to rename options, or change their type). |
539d818
to
42118d7
Compare
nvm, looks like you got it covered |
List<ScriptInfo> scripts = new(ScriptsManager.GetScripts()); | ||
BindingList<ScriptInfo> scripts = _scriptsManager.GetScripts(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the cause of the regression.
Confirmed saving settings works now |
saving works but many tests fail |
/fml
I'll have a look tonight
|
The PR build succeeded though the master is now failing.... I will have to have a look tomorrow or the day after. |
Resolves #11253
As reported in #11239 (comment) (/cc: @SlugFiller)