From 61a42e13dbade5826555873501e505d3dcb5a554 Mon Sep 17 00:00:00 2001 From: MATRIX-feather Date: Fri, 15 Nov 2024 20:34:00 +0800 Subject: [PATCH] Will this fix lyric display issue? --- osu.Game.Rulesets.IGPlayer.sln.DotSettings | 1 + .../Player/Plugins/Bundle/CloudMusic/UI/LyricLineHandler.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.IGPlayer.sln.DotSettings b/osu.Game.Rulesets.IGPlayer.sln.DotSettings index cafcaaf..ed2656e 100644 --- a/osu.Game.Rulesets.IGPlayer.sln.DotSettings +++ b/osu.Game.Rulesets.IGPlayer.sln.DotSettings @@ -802,6 +802,7 @@ True True True + True True True True diff --git a/osu.Game.Rulesets.IGPlayer/Feature/Player/Plugins/Bundle/CloudMusic/UI/LyricLineHandler.cs b/osu.Game.Rulesets.IGPlayer/Feature/Player/Plugins/Bundle/CloudMusic/UI/LyricLineHandler.cs index 8f01b86..6d2a798 100644 --- a/osu.Game.Rulesets.IGPlayer/Feature/Player/Plugins/Bundle/CloudMusic/UI/LyricLineHandler.cs +++ b/osu.Game.Rulesets.IGPlayer/Feature/Player/Plugins/Bundle/CloudMusic/UI/LyricLineHandler.cs @@ -67,7 +67,7 @@ public string Text Margin = getMargin(false) }, text => { - if (tokenSource.Token.IsCancellationRequested) + if (tokenSource.IsCancellationRequested) return; lyricContainer.Add(text); @@ -113,7 +113,7 @@ public string TranslatedText Margin = getMargin(true) }, text => { - if (tokenSource.Token.IsCancellationRequested) + if (tokenSource.IsCancellationRequested) return; text.MoveToY(0, fadeInDuration.Value, fadeInEasing) @@ -121,7 +121,7 @@ public string TranslatedText lyricContainer.Add(text); currentLineTranslated = text; - }); + }, tokenSource.Token); }); currentRawTranslateText = value;