mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-06 02:06:44 +08:00
write log when failed to create the shortcut
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user