From 1181a35f081880432d6302234ce8c84917cc9fc0 Mon Sep 17 00:00:00 2001 From: tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 21 Mar 2026 20:27:05 +0200 Subject: [PATCH] Variable names consistency --- DiscordChatExporter.Gui/Services/UpdateService.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DiscordChatExporter.Gui/Services/UpdateService.cs b/DiscordChatExporter.Gui/Services/UpdateService.cs index b249bb16..7059e133 100644 --- a/DiscordChatExporter.Gui/Services/UpdateService.cs +++ b/DiscordChatExporter.Gui/Services/UpdateService.cs @@ -26,8 +26,8 @@ public class UpdateService(SettingsService settingsService) : IDisposable : null; private Version? _updateVersion; - private bool _updatePrepared; - private bool _updaterLaunched; + private bool _isUpdatePrepared; + private bool _isUpdaterLaunched; public async ValueTask CheckForUpdatesAsync() { @@ -52,7 +52,7 @@ public class UpdateService(SettingsService settingsService) : IDisposable try { await _updateManager.PrepareUpdateAsync(_updateVersion = version); - _updatePrepared = true; + _isUpdatePrepared = true; } catch (UpdaterAlreadyLaunchedException) { @@ -72,13 +72,13 @@ public class UpdateService(SettingsService settingsService) : IDisposable if (!settingsService.IsAutoUpdateEnabled) return; - if (_updateVersion is null || !_updatePrepared || _updaterLaunched) + if (_updateVersion is null || !_isUpdatePrepared || _isUpdaterLaunched) return; try { _updateManager.LaunchUpdater(_updateVersion, needRestart); - _updaterLaunched = true; + _isUpdaterLaunched = true; } catch (UpdaterAlreadyLaunchedException) {