mirror of https://github.com/ppy/osu
Fix inspection
This commit is contained in:
parent
5d497ba4a8
commit
6f782266b5
|
@ -68,12 +68,9 @@ private void load()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
selectionCentreButton.Selected.DisabledChanged += (isDisabled) =>
|
selectionCentreButton.Selected.DisabledChanged += isDisabled =>
|
||||||
{
|
{
|
||||||
if (isDisabled)
|
selectionCentreButton.TooltipText = isDisabled ? "We can't rotate a circle around itself! Can we?" : string.Empty;
|
||||||
selectionCentreButton.TooltipText = "We can't rotate a circle around itself! Can we?";
|
|
||||||
else
|
|
||||||
selectionCentreButton.TooltipText = string.Empty;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -214,12 +214,9 @@ private void load(OsuConfigManager config)
|
||||||
|
|
||||||
foreach (var item in toolboxCollection.Items)
|
foreach (var item in toolboxCollection.Items)
|
||||||
{
|
{
|
||||||
item.Selected.DisabledChanged += (isDisabled) =>
|
item.Selected.DisabledChanged += isDisabled =>
|
||||||
{
|
{
|
||||||
if (isDisabled)
|
item.TooltipText = isDisabled ? "Add at least one timing point first!" : string.Empty;
|
||||||
item.TooltipText = "Add at least one timing point first!";
|
|
||||||
else
|
|
||||||
item.TooltipText = string.Empty;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue