mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Misc
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Net;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using Squirrel;
|
using Squirrel;
|
||||||
using Wox.Core.Plugin;
|
using Wox.Core.Plugin;
|
||||||
@@ -62,12 +63,16 @@ namespace Wox
|
|||||||
await Updater.UpdateApp();
|
await Updater.UpdateApp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (WebException ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex);
|
||||||
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
const string info = "Update.exe not found, not a Squirrel-installed app?";
|
const string info = "Update.exe not found, not a Squirrel-installed app?";
|
||||||
if (exception.Message == info)
|
if (exception.Message == info)
|
||||||
{
|
{
|
||||||
Log.Warn("info");
|
Log.Warn(info);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -878,6 +878,10 @@ namespace Wox
|
|||||||
await updater.UpdateApp();
|
await updater.UpdateApp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (WebException ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex);
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Log.Error(ex);
|
Log.Error(ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user