Skip to content

Commit

Permalink
修复在多 P 视频下,倍速选项会消失的问题 (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy authored Jun 22, 2024
1 parent 08c78da commit cbb1f00
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/App/Controls/Base/BiliTransportControls.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
Style="{StaticResource CaptionTextBlockStyle}"
Text="{ext:Locale Name=PlaybackRate}" />
<ItemsRepeater ItemsSource="{x:Bind ViewModel.PlaybackRates}">
<ItemsRepeater ItemsSource="{x:Bind ViewModel.PlaybackRates, Mode=OneWay}">
<ItemsRepeater.Layout>
<StackLayout Orientation="Horizontal" Spacing="4" />
</ItemsRepeater.Layout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ private static string GetLivePreferCodecId()
private void ResetMediaData()
{
TryClear(Formats);
TryClear(PlaybackRates);
IsShowProgressTip = false;
IsShowMediaTransport = false;
IsShowAutoCloseWindowTip = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Windows.Documents;
using Bili.Copilot.Models.App.Other;
using Bili.Copilot.Models.Constants.App;
using Bili.Copilot.Models.Constants.Bili;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ private void Dispose(bool disposing)

Clear();
Formats.Clear();
PlaybackRates.Clear();
}

_disposedValue = true;
Expand Down

0 comments on commit cbb1f00

Please sign in to comment.