1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 15:02:54 +08:00

Fix disable mouse buttons setting not showing default indicator when using keybind

This commit is contained in:
Joehu 2021-03-14 22:47:05 -07:00
parent 712e7bc7bf
commit 3dd72d6f7d

View File

@ -886,7 +886,9 @@ namespace osu.Game
return true;
case GlobalAction.ToggleGameplayMouseButtons:
LocalConfig.Set(OsuSetting.MouseDisableButtons, !LocalConfig.Get<bool>(OsuSetting.MouseDisableButtons));
var mouseDisableButtons = LocalConfig.GetBindable<bool>(OsuSetting.MouseDisableButtons);
mouseDisableButtons.Value = !mouseDisableButtons.Value;
return true;
case GlobalAction.RandomSkin: