mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 06:22:55 +08:00
Merge pull request #31778 from peppy/editor-menu-mutual-exclusive
Make distance snap settings mutually exclusive
This commit is contained in:
commit
b60a8341e4
@ -330,6 +330,18 @@ namespace osu.Game.Screens.Edit
|
||||
editorTimelineShowTicks = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTicks);
|
||||
editorContractSidebars = config.GetBindable<bool>(OsuSetting.EditorContractSidebars);
|
||||
|
||||
// These two settings don't work together. Make them mutually exclusive to let the user know.
|
||||
editorAutoSeekOnPlacement.BindValueChanged(enabled =>
|
||||
{
|
||||
if (enabled.NewValue)
|
||||
editorLimitedDistanceSnap.Value = false;
|
||||
});
|
||||
editorLimitedDistanceSnap.BindValueChanged(enabled =>
|
||||
{
|
||||
if (enabled.NewValue)
|
||||
editorAutoSeekOnPlacement.Value = false;
|
||||
});
|
||||
|
||||
AddInternal(new OsuContextMenuContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
Loading…
Reference in New Issue
Block a user