mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-27 08:23:03 +00:00
Variable names consistency
This commit is contained in:
@@ -26,8 +26,8 @@ public class UpdateService(SettingsService settingsService) : IDisposable
|
|||||||
: null;
|
: null;
|
||||||
|
|
||||||
private Version? _updateVersion;
|
private Version? _updateVersion;
|
||||||
private bool _updatePrepared;
|
private bool _isUpdatePrepared;
|
||||||
private bool _updaterLaunched;
|
private bool _isUpdaterLaunched;
|
||||||
|
|
||||||
public async ValueTask<Version?> CheckForUpdatesAsync()
|
public async ValueTask<Version?> CheckForUpdatesAsync()
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ public class UpdateService(SettingsService settingsService) : IDisposable
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _updateManager.PrepareUpdateAsync(_updateVersion = version);
|
await _updateManager.PrepareUpdateAsync(_updateVersion = version);
|
||||||
_updatePrepared = true;
|
_isUpdatePrepared = true;
|
||||||
}
|
}
|
||||||
catch (UpdaterAlreadyLaunchedException)
|
catch (UpdaterAlreadyLaunchedException)
|
||||||
{
|
{
|
||||||
@@ -72,13 +72,13 @@ public class UpdateService(SettingsService settingsService) : IDisposable
|
|||||||
if (!settingsService.IsAutoUpdateEnabled)
|
if (!settingsService.IsAutoUpdateEnabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_updateVersion is null || !_updatePrepared || _updaterLaunched)
|
if (_updateVersion is null || !_isUpdatePrepared || _isUpdaterLaunched)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_updateManager.LaunchUpdater(_updateVersion, needRestart);
|
_updateManager.LaunchUpdater(_updateVersion, needRestart);
|
||||||
_updaterLaunched = true;
|
_isUpdaterLaunched = true;
|
||||||
}
|
}
|
||||||
catch (UpdaterAlreadyLaunchedException)
|
catch (UpdaterAlreadyLaunchedException)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user