Skip to content

Commit

Permalink
Fix prefs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Jan 17, 2022
1 parent 2ac72f4 commit a4f17fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TVRename/Forms/UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ public UI(TVDoc doc, [NotNull] TVRenameSplash splash, bool showUi)
UpdateSplashStatus(splash, "Setting Notifications");
ShowHideNotificationIcon();

UpdateSplashStatus(splash, "Creating Monitors");
mAutoFolderMonitor = new AutoFolderMonitor(mDoc, this);
if (TVSettings.Instance.MonitorFolders)
{
UpdateSplashStatus(splash, "Creating Monitors");
mAutoFolderMonitor = new AutoFolderMonitor(mDoc, this);
UpdateSplashStatus(splash, "Starting Monitor");
mAutoFolderMonitor.Start();
}
Expand Down Expand Up @@ -1177,7 +1177,7 @@ private void UI_FormClosing(object sender, FormClosingEventArgs e)
mDoc.TidyCaches();
SaveCaches();
mDoc.Closing();
mAutoFolderMonitor.Dispose();
mAutoFolderMonitor?.Dispose();
BGDownloadTimer.Dispose();
UpdateTimer.Dispose();
quickTimer.Dispose();
Expand Down Expand Up @@ -2395,7 +2395,7 @@ private void DoPrefs(bool scanOptions)
ShowInTaskbar = TVSettings.Instance.ShowInTaskbar;
EnableDisableAccessibilty();
FillEpGuideHtml();
mAutoFolderMonitor.SettingsChanged(TVSettings.Instance.MonitorFolders);
mAutoFolderMonitor?.SettingsChanged(TVSettings.Instance.MonitorFolders);
UpdateVisibilityFromSettings();
ForceRefresh(false);
}
Expand Down

0 comments on commit a4f17fe

Please sign in to comment.