set window icon/title and use centralized logger (#30091)

This commit is contained in:
Davide Giacometti
2023-12-09 13:15:24 +01:00
committed by GitHub
parent 9e03386eb3
commit f30438b959
15 changed files with 29 additions and 96 deletions

View File

@@ -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;
}