Skip to content

Commit

Permalink
修复Desktop兼容播放窗口边框大小无法拖动的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jan 11, 2025
1 parent a06b38c commit f68129f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Desktop/Views/Windows/WebPlayWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
mc:Ignorable="d"
Title="PlayWindow" Height="505" Width="840" Closing="Window_Closing">
<Grid>
<Grid Margin="3">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
Expand Down
6 changes: 3 additions & 3 deletions Desktop/Views/Windows/WebPlayWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ private async void WV2_Loaded(object sender, RoutedEventArgs e)
{
if (item != null && item.Split('=').Length == 2)
{
string name = item.Split('=')[0];
string value = item.Split('=')[1];
string name = item.Split('=')[0].TrimStart().TrimEnd();
string value = item.Split('=')[1].TrimStart().TrimEnd();
string D = ".bilibili.com";

var cookie = WV2.CoreWebView2.CookieManager.CreateCookie(name, value, D, "/");
Expand All @@ -81,7 +81,7 @@ private async void WV2_Loaded(object sender, RoutedEventArgs e)
string uc = test.UC;
WV2.CoreWebView2.Navigate($"{uc}{_room_id}&send=0&recommend=0&fullscreen=0");
}
catch (Exception EX)
catch (Exception EX)
{
Log.Error(nameof(WebPlayWindow), $"房间号:[{_room_id}],打开错误", EX, true);
}
Expand Down

0 comments on commit f68129f

Please sign in to comment.