From 244f34274eae751350d311572f2ded45704e1502 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 20 Feb 2022 14:50:12 +0800 Subject: [PATCH] Udpates to error severity --- TVRename/Forms/UI.cs | 16 +++++++++++----- TVRename/ScanActivity/ScanActivity.cs | 2 +- TVRename/TVRename/TVDoc.cs | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/TVRename/Forms/UI.cs b/TVRename/Forms/UI.cs index 41b6f669..6a651bcd 100644 --- a/TVRename/Forms/UI.cs +++ b/TVRename/Forms/UI.cs @@ -3649,14 +3649,20 @@ private void bwScan_ProgressChanged(object sender, ProgressChangedEventArgs e) private void bwScan_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { - TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress,Handle); + if (!IsDisposed) + { + TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress, Handle); + } AskUserAboutShowProblems(lastScanUnattended); LessBusy(); //Note this is set in UiScan() scanProgDlg?.Close(); - FillMyShows(true); // scanning can download more info to be displayed in my shows - FillMyMovies(); - FillActionList(); - TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress, Handle); + if (!IsDisposed) + { + FillMyShows(true); // scanning can download more info to be displayed in my shows + FillMyMovies(); + FillActionList(); + TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress, Handle); + } offlineOperationToolStripMenuItem.Checked = TVSettings.Instance.OfflineMode; } diff --git a/TVRename/ScanActivity/ScanActivity.cs b/TVRename/ScanActivity/ScanActivity.cs index ef0c76cb..d6bfdd40 100644 --- a/TVRename/ScanActivity/ScanActivity.cs +++ b/TVRename/ScanActivity/ScanActivity.cs @@ -65,7 +65,7 @@ public void Check(SetProgressDelegate prog, int startpct, int totPct) } catch (TaskCanceledException sce) { - LOGGER.Error(sce,$"Failed to run Scan for {CheckName()} : {sce.Message}"); + LOGGER.Warn($"Failed to run Scan for {CheckName()} : {sce.Message}"); } catch (Exception e) { diff --git a/TVRename/TVRename/TVDoc.cs b/TVRename/TVRename/TVDoc.cs index 52844246..065fa4ff 100644 --- a/TVRename/TVRename/TVDoc.cs +++ b/TVRename/TVRename/TVDoc.cs @@ -2223,7 +2223,7 @@ private void BonusAutoAdd([NotNull] FileInfo fi, IDialogParent owner) //If added add show ot collection if (askForMatch.ShowConfiguration.Code > 0) { - Logger.Error($"User requested movie {file.FullName} be added as a TV Show - Ignoring for now"); + Logger.Warn($"User requested movie {file.FullName} be added as a TV Show - Ignoring for now"); return (null, null); }