Skip to content

Commit

Permalink
fix: 当链接无效时,不显示内容box
Browse files Browse the repository at this point in the history
  • Loading branch information
K12f committed Sep 15, 2024
1 parent edf1936 commit 69e4f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlueCatKoKo.Ui/ViewModels/Pages/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ private async Task Parse()
// 这里设置选项,防止自动播放
MediaPlayer.Media = media;
MediaPlayer.Pause();
IsParsed = "Visible";
}
catch (Exception ex)
{
Expand All @@ -141,7 +142,6 @@ private async Task Parse()
finally
{
IsDisableParsingBtn = true;
IsParsed = "Visible";
DownloaderMessage downloadMessage = new(type, message, DownloadUrlText);
Messenger.Send(new ValueChangedMessage<DownloaderMessage>(downloadMessage));
}
Expand Down

0 comments on commit 69e4f26

Please sign in to comment.