Fix inspection

This commit is contained in:
Nguyên Minh Hồ 2024-03-30 17:03:40 +07:00
parent 5d497ba4a8
commit 6f782266b5
2 changed files with 4 additions and 10 deletions

View File

@ -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;
}; };
} }

View File

@ -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;
}; };
} }