Skip to content

Commit

Permalink
Merge pull request ppy#31778 from peppy/editor-menu-mutual-exclusive
Browse files Browse the repository at this point in the history
Make distance snap settings mutually exclusive
  • Loading branch information
bdach authored Feb 3, 2025
2 parents 56000dd + 26a8fb6 commit b60a834
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions osu.Game/Screens/Edit/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,18 @@ private void load(OsuConfigManager config)
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,
Expand Down

0 comments on commit b60a834

Please sign in to comment.