Skip to content

Commit

Permalink
Update error messaging and make taskbar display more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Feb 21, 2022
1 parent 244f342 commit c1d8762
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 5 additions & 2 deletions TVRename/Forms/UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion TVRename/TVRename/CacheUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private void Downloader([NotNull] object token)
catch (TaskCanceledException tce)
{
downloadOk = false;
Logger.Error(tce);
Logger.Warn(tce);
}
catch (Exception e)
{
Expand Down
4 changes: 0 additions & 4 deletions TVRename/TVRename/TVDoc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c1d8762

Please sign in to comment.