Error in Katteker.Gui/Wrapper.cs when no configuration file was found.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user