From c1d876233be66a818cf9feb1e67da9e62b61fa5e Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 21 Feb 2022 21:40:21 +0800 Subject: [PATCH] Update error messaging and make taskbar display more accurate --- TVRename/Forms/UI.cs | 7 +++++-- TVRename/TVRename/CacheUpdater.cs | 2 +- TVRename/TVRename/TVDoc.cs | 4 ---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/TVRename/Forms/UI.cs b/TVRename/Forms/UI.cs index 6a651bcd..6d33ed20 100644 --- a/TVRename/Forms/UI.cs +++ b/TVRename/Forms/UI.cs @@ -4995,8 +4995,11 @@ public void ShowFgDownloadProgress(CacheUpdater cu, CancellationTokenSource cts) { if (!IsDisposed) { - TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal,Handle); - Invoke((MethodInvoker)delegate { new DownloadProgress(cu, cts).Show(this); }); + Invoke((MethodInvoker)delegate + { + TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Normal, Handle); + new DownloadProgress(cu, cts).Show(this); + }); } } diff --git a/TVRename/TVRename/CacheUpdater.cs b/TVRename/TVRename/CacheUpdater.cs index fedf3f63..8e2d4012 100644 --- a/TVRename/TVRename/CacheUpdater.cs +++ b/TVRename/TVRename/CacheUpdater.cs @@ -352,7 +352,7 @@ private void Downloader([NotNull] object token) catch (TaskCanceledException tce) { downloadOk = false; - Logger.Error(tce); + Logger.Warn(tce); } catch (Exception e) { diff --git a/TVRename/TVRename/TVDoc.cs b/TVRename/TVRename/TVDoc.cs index 065fa4ff..2bd764db 100644 --- a/TVRename/TVRename/TVDoc.cs +++ b/TVRename/TVRename/TVDoc.cs @@ -369,10 +369,6 @@ public void DoActions([NotNull] ItemList theList, CancellationToken token) // remove items from master list, unless it had an error TheActionList.Remove(doneActions); - - //Logger.Info("Starting Post Scan activities"); - //new CleanUpEmptyLibraryFolders(this).Check(null); - //Logger.Info("Completed Post Scan activities"); } catch (Exception e) {