Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/DiscordChatExporter/commit/dac7c664d98547357d32737207c48b98572f0852 You should set ROOT_URL correctly, otherwise the web may not work correctly.

[GUI] Ensure update has been prepared before attempting to install it

pull/287/head
Alexey Golub 5 years ago
parent 6a8579787d
commit dac7c664d9

@ -16,6 +16,7 @@ namespace DiscordChatExporter.Gui.Services
private readonly SettingsService _settingsService;
private Version? _updateVersion;
private bool _updatePrepared;
private bool _updaterLaunched;
public UpdateService(SettingsService settingsService)
@ -40,6 +41,7 @@ namespace DiscordChatExporter.Gui.Services
try
{
await _updateManager.PrepareUpdateAsync(_updateVersion = version);
_updatePrepared = true;
}
catch (UpdaterAlreadyLaunchedException)
{
@ -56,7 +58,7 @@ namespace DiscordChatExporter.Gui.Services
if (!_settingsService.IsAutoUpdateEnabled)
return;
if (_updateVersion == null || _updaterLaunched)
if (_updateVersion == null || !_updatePrepared || _updaterLaunched)
return;
try

Loading…
Cancel
Save