Tyrrrz / YoutubeDownloader

Downloads videos and playlists from YouTube
MIT License
8.71k stars 1.19k forks source link

Exception when opening the settings window while another popup is active #292

Closed MesterPerfect closed 2 years ago

MesterPerfect commented 2 years ago

Version

1.9.4

Details

When you open the program, its interface will look like this

image

If I press the settings button with the mouse pointer nothing happens But if you press the settings button with the enter key on the keyboard This error message Show

image


Error occured

System.InvalidOperationException: DialogHost is already open.

at MaterialDesignThemes.Wpf.DialogHost.ShowInternal(Object content, DialogOpenedEventHandler openedEventHandler, DialogClosingEventHandler closingEventHandler, DialogClosedEventHandler closedEventHandler)

at MaterialDesignThemes.Wpf.DialogHost.Show(Object content, Object dialogIdentifier, DialogOpenedEventHandler openedEventHandler, DialogClosingEventHandler closingEventHandler, DialogClosedEventHandler closedEventHandler)

at YoutubeDownloader.ViewModels.Framework.DialogManager.ShowDialogAsync[T](DialogScreen`1 dialogScreen) in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader\ViewModels\Framework\DialogManager.cs:line 38

at YoutubeDownloader.ViewModels.Components.DashboardViewModel.ShowSettings() in D:\a\YoutubeDownloader\YoutubeDownloader\YoutubeDownloader\ViewModels\Components\DashboardViewModel.cs:line 59

at System.Threading.Tasks.Task.<>c.b__128_0(Object state)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

OK

Steps to reproduce

Open the program and activate the settings button using the keyboard