-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix disable mouse buttons setting not showing default indicator when using keybind #12015
Fix disable mouse buttons setting not showing default indicator when using keybind #12015
Conversation
This looks like a pretty large gotcha with the @smoogipoo any issues with fixing this on the framework side? something like this https://github.com/ppy/osu-framework/compare/master...peppy:fix-config-manager-set-default?expand=1 |
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.
Yep, was gonna suggest separating setting default value of setting to another method (SetWithDefault
) but yours sounds much better.
I'm fine with a framework change, but it setting the default should be the... default. Most usages of I'm also not really against the change in this PR if we disagree on that. |
I was planning on just having the first |
Hmmm... It feels weird in terms of the overrides accepting min/max values, no? I'm actually not sure if it should even be public in the first place, and that this PR is what we want in the end. |
Can agree to making the |
The problem is that
ConfigManager
'sSet
changes the default value to the changed one.https://github.com/ppy/osu-framework/blob/1a0a270c9c933fdd469398b2db4086bef56b7101/osu.Framework/Configuration/ConfigManager.cs#L108-L125