From 635780d76a05169baab2f562ce6f8de55c1a5b88 Mon Sep 17 00:00:00 2001 From: Richasy Date: Fri, 20 Sep 2024 16:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=B9=E5=B9=95=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E5=BC=82=E5=B8=B8=20(#616)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BiliCopilot.UI/Controls/Danmaku/VideoDanmakuPanel.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Desktop/BiliCopilot.UI/Controls/Danmaku/VideoDanmakuPanel.xaml.cs b/src/Desktop/BiliCopilot.UI/Controls/Danmaku/VideoDanmakuPanel.xaml.cs index 45f131aa..a0ce7118 100644 --- a/src/Desktop/BiliCopilot.UI/Controls/Danmaku/VideoDanmakuPanel.xaml.cs +++ b/src/Desktop/BiliCopilot.UI/Controls/Danmaku/VideoDanmakuPanel.xaml.cs @@ -180,7 +180,7 @@ private void ResetDanmakuStyle() private void ResetSpeed() { var finalSpeed = ViewModel.DanmakuSpeed * 5 * ViewModel.ExtraSpeed; - _danmakuController.SetRollingSpeed(finalSpeed); + _danmakuController?.SetRollingSpeed(finalSpeed); } private void Redraw(bool force = false)