mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Fix bindable feedback loop
This commit is contained in:
parent
8e5ba2208d
commit
1e14b02493
@ -85,6 +85,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Auto should never apply when there is a selection made.
|
||||||
|
// This is also required to stop a bindable feedback loop when a HitObject has zero samples (and LINQ `All` below becomes true).
|
||||||
|
if (bankName == HIT_BANK_AUTO)
|
||||||
|
break;
|
||||||
|
|
||||||
// Never remove a sample bank.
|
// Never remove a sample bank.
|
||||||
// These are basically radio buttons, not toggles.
|
// These are basically radio buttons, not toggles.
|
||||||
if (SelectedItems.All(h => h.Samples.All(s => s.Bank == bankName)))
|
if (SelectedItems.All(h => h.Samples.All(s => s.Bank == bankName)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user