Error in Katteker.Gui/Wrapper.cs when no configuration file was found.

This commit is contained in:
2018-03-22 08:09:23 +01:00
parent 016e11e81f
commit 9dd3943448
2 changed files with 7 additions and 4 deletions

View File

@@ -26,10 +26,13 @@ namespace Katteker.Gui
using (var window = new UpdateWindow())
{
var dialogResult = DialogResult.Cancel;
if (!UpdateManager.TryCreate(out var manager) && !isStartup)
if (!UpdateManager.TryCreate(out var manager))
{
MessageBox.Show(Resources.SquirrelWrapper_CheckForUpdate,
Resources.SquirrelWrapper_CheckForUpdate_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
if (!isStartup)
{
MessageBox.Show(Resources.SquirrelWrapper_CheckForUpdate,
Resources.SquirrelWrapper_CheckForUpdate_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
return;
}