mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
set window icon/title and use centralized logger (#30091)
This commit is contained in:
committed by
GitHub
parent
9e03386eb3
commit
f30438b959
@@ -4,7 +4,7 @@
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using Peek.Common.Helpers;
|
||||
using ManagedCommon;
|
||||
using Peek.Common.Models;
|
||||
using Peek.UI.Native;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Peek.UI.Helpers
|
||||
ret = NativeMethods.AssocQueryString(NativeMethods.AssocF.Verify, NativeMethods.AssocStr.FriendlyAppName, extension, null, sb, ref length);
|
||||
if (ret != HResult.Ok)
|
||||
{
|
||||
Logger.LogError($"Error when getting accessString for {extension} file: {Marshal.GetExceptionForHR((int)ret)!.Message}" );
|
||||
Logger.LogError($"Error when getting accessString for {extension} file: {Marshal.GetExceptionForHR((int)ret)!.Message}");
|
||||
return appName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user