Clear the query when a video is successfully added to the download queue (#636)
This commit is contained in:
parent
d81fcabd28
commit
931eaaf819
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user