Clear the query when a video is successfully added to the download queue (#636)

This commit is contained in:
Oleksii Holub 2025-03-31 00:01:31 +03:00 committed by GitHub
parent d81fcabd28
commit 931eaaf819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -191,6 +191,7 @@ public partial class DashboardViewModel : ViewModelBase
if (result.Videos.Count == 1)
{
var video = result.Videos.Single();
var downloadOptions = await downloader.GetDownloadOptionsAsync(
video.Id,
_settingsService.ShouldInjectLanguageSpecificAudioStreams
@ -204,6 +205,8 @@ public partial class DashboardViewModel : ViewModelBase
return;
EnqueueDownload(download);
Query = "";
}
// Multiple videos
else if (result.Videos.Count > 1)
@ -224,6 +227,8 @@ public partial class DashboardViewModel : ViewModelBase
foreach (var download in downloads)
EnqueueDownload(download);
Query = "";
}
// No videos found
else