Check if auto-update is enabled in UpdateService

This commit is contained in:
Alexey Golub
2020-01-03 21:44:30 +02:00
parent 3af9421304
commit cec8409ac4
2 changed files with 20 additions and 8 deletions

View File

@@ -69,10 +69,6 @@ namespace DiscordChatExporter.Gui.ViewModels
{
try
{
// Don't check for updates if auto-update is disabled
if (!_settingsService.IsAutoUpdateEnabled)
return;
// Check for updates
var updateVersion = await _updateService.CheckForUpdatesAsync();
if (updateVersion == null)