Application ready before dependency injction
This commit is contained in:
@ -21,6 +21,7 @@ namespace YouTubeViewers.WPF.Commands
|
||||
|
||||
public override async Task ExecuteAsync(object? parameter)
|
||||
{
|
||||
_youTubeViewersViewModel.ErrorMessage = null;
|
||||
_youTubeViewersViewModel.IsLoading = true;
|
||||
|
||||
try
|
||||
@ -29,7 +30,7 @@ namespace YouTubeViewers.WPF.Commands
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
_youTubeViewersViewModel.ErrorMessage = "Failed to load YouTube viewers. Please restart the application.";
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user