write log when failed to create the shortcut

This commit is contained in:
Paddy Xu
2018-08-05 21:23:59 +03:00
parent 7f357e2586
commit b102d44046
+3 -2
View File
@@ -17,7 +17,7 @@
using System;
using System.IO;
using Shell32;
using QuickLook.Common.Helpers;
namespace QuickLook.Helpers
{
@@ -45,8 +45,9 @@ namespace QuickLook.Helpers
lnk.Save(StartupFullPath);
}
catch (Exception)
catch (Exception e)
{
ProcessHelper.WriteLog(e.ToString());
TrayIconManager.ShowNotification("", "Failed to add QuickLook to Startup folder.");
}
}