1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:47:28 +08:00

Fix display not always updating when expected by updating on a schedule

This commit is contained in:
Dean Herbert 2023-04-05 13:45:24 +09:00
parent f07d859532
commit 9c8b25e034

View File

@ -106,6 +106,9 @@ namespace osu.Game.Rulesets.Edit
addValue($"{duration.Duration:#,0.##}ms");
}
// I'd hope there's a better way to do this, but I don't want to bind to each and every property above to watch for changes.
// This is a good middle-ground for the time being.
Scheduler.AddDelayed(updateInspectorText, 250);
break;
default:
@ -120,9 +123,6 @@ namespace osu.Game.Rulesets.Edit
break;
}
if (EditorBeatmap.TransactionActive)
Scheduler.AddDelayed(updateInspectorText, 100);
void addHeader(string header) => inspectorText.AddParagraph($"{header}: ", s =>
{
s.Padding = new MarginPadding { Top = 2 };