Skip to content

Commit

Permalink
Fixed potential crash bug on closing in Portable version.
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomEngy committed Mar 18, 2023
1 parent ca0f890 commit 7cddd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VidCoder/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ public bool OnClosing()
}

// Close the watcher service if the user has asked to on program close
if (!RegistryUtilities.IsFileWatcherAutoStart())
if (Utilities.WatcherSupportedAndEnabled && !RegistryUtilities.IsFileWatcherAutoStart())
{
StaticResolver.Resolve<WatcherProcessManager>().Stop();
}
Expand Down

0 comments on commit 7cddd1d

Please sign in to comment.