From 7afe1b517ca0a9e4ae2b2c000f2effeb9e2c3614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sat, 24 Aug 2024 16:10:14 +0200 Subject: [PATCH] Ignore task bar pinning errors. --- Wino.Mail.ViewModels/AppShellViewModel.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Wino.Mail.ViewModels/AppShellViewModel.cs b/Wino.Mail.ViewModels/AppShellViewModel.cs index a84a1956..8eacac5c 100644 --- a/Wino.Mail.ViewModels/AppShellViewModel.cs +++ b/Wino.Mail.ViewModels/AppShellViewModel.cs @@ -889,7 +889,14 @@ namespace Wino.Mail.ViewModels Messenger.Send(new NewSynchronizationRequested(options, SynchronizationSource.Client)); - await _nativeAppService.PinAppToTaskbarAsync(); + try + { + await _nativeAppService.PinAppToTaskbarAsync(); + } + catch (Exception ex) + { + Log.Error(ex, "Failed to pin Wino to taskbar."); + } } // TODO: Handle by messaging.