Improving stability for the notification issue reported in #182

This commit is contained in:
Robin 2020-04-14 12:31:52 +02:00
commit 87f3b6a871
3 changed files with 204 additions and 177 deletions

View file

@ -63,7 +63,7 @@ namespace GreenshotWin10Plugin
return false;
}
SimpleServiceProvider.Current.AddService<INotificationService>(new ToastNotificationService());
SimpleServiceProvider.Current.AddService<INotificationService>(ToastNotificationService.Create());
// Set this as IOcrProvider
SimpleServiceProvider.Current.AddService<IOcrProvider>(new Win10OcrProvider());
// Add the processor