From f4b402420f0d2e0fe92234a2db60b6f81b22b6ed Mon Sep 17 00:00:00 2001 From: Thomas <71355143+thomas694@users.noreply.github.com> Date: Sun, 5 Jun 2022 15:49:56 +0200 Subject: [PATCH] Fix issue 242 Occasional exception during blog addition --- .../Controllers/ManagerController.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs b/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs index 97e021d2..ded1202a 100644 --- a/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs +++ b/src/TumblThree/TumblThree.Applications/Controllers/ManagerController.cs @@ -836,20 +836,6 @@ private void SaveBlog(IBlog blog) if (blog.Save()) { AddToManager(blog); - QueueOnDispatcher.CheckBeginInvokeOnUI(() => - { - try - { - var ecv = (IEditableCollectionView)_managerService.BlogFilesView; - if (ecv.IsAddingNew) ecv.CancelNew(); - _managerService.BlogFilesView.Refresh(); - } - catch (Exception e) - { - Logger.Error($"ManagerController:SaveBlog: {e}"); - throw new Exception("Exception 1", e); - } - }); } }