mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Do not revert to default value when double-clicking disabled slider
Closes https://github.com/ppy/osu/issues/25228.
This commit is contained in:
parent
89fec95b01
commit
3b9c4c9d53
@ -98,7 +98,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativePositionAxes = Axes.X,
|
RelativePositionAxes = Axes.X,
|
||||||
Current = { Value = true },
|
Current = { Value = true },
|
||||||
OnDoubleClicked = () => Current.SetDefault(),
|
OnDoubleClicked = () =>
|
||||||
|
{
|
||||||
|
if (!Current.Disabled)
|
||||||
|
Current.SetDefault();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hoverClickSounds = new HoverClickSounds()
|
hoverClickSounds = new HoverClickSounds()
|
||||||
|
@ -101,7 +101,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativePositionAxes = Axes.X,
|
RelativePositionAxes = Axes.X,
|
||||||
Current = { Value = true },
|
Current = { Value = true },
|
||||||
OnDoubleClicked = () => Current.SetDefault(),
|
OnDoubleClicked = () =>
|
||||||
|
{
|
||||||
|
if (!Current.Disabled)
|
||||||
|
Current.SetDefault();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hoverClickSounds = new HoverClickSounds()
|
hoverClickSounds = new HoverClickSounds()
|
||||||
|
Loading…
Reference in New Issue
Block a user