Skip to content

Commit

Permalink
Fix window icon
Browse files Browse the repository at this point in the history
  • Loading branch information
chausner committed Mar 28, 2024
1 parent 5b92ff7 commit e6666ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TranslateWithDictCC/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
using System;
using System.ComponentModel;
using System.IO;
using System.Reflection;
using TranslateWithDictCC.Views;
using Windows.ApplicationModel;
using Windows.UI;
using WinRT.Interop;
using WinUIEx;
Expand Down Expand Up @@ -96,8 +96,8 @@ private void SetTitleBarColorsAndIcon()
titleBar.ButtonInactiveForegroundColor = (Color?)dictionary["TitleBarButtonInactiveForegroundColor"];
}

string applicationRoot = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
appWindow.SetIcon(Path.Combine(applicationRoot, @"Assets\Logo.ico"));
string packagePath = Package.Current.InstalledLocation.Path;
appWindow.SetIcon(Path.Combine(packagePath, @"Assets\Logo.ico"));
}

private void SetWindowSizeAndLocation()
Expand Down

0 comments on commit e6666ea

Please sign in to comment.