mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:02:57 +08:00
Fix display not always updating when expected by updating on a schedule
This commit is contained in:
parent
f07d859532
commit
9c8b25e034
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user