Skip to content

Commit

Permalink
Fix a crash on the updater
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Oct 27, 2024
1 parent e0fb096 commit 37c4592
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/UniGetUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ public MainWindow()
InitializeComponent();

ExtendsContentIntoTitleBar = true;
SetTitleBar(ContentRoot);
try
{
SetTitleBar(ContentRoot);
} catch
{
Logger.Warn("Could not set the title bar to the content root");
MainApp.Instance.DisposeAndQuit(-1);
}

SizeChanged += (_, _) => { SaveGeometry(); };
AppWindow.SetIcon(Path.Join(CoreData.UniGetUIExecutableDirectory, "Assets", "Images", "icon.ico"));
Expand Down

0 comments on commit 37c4592

Please sign in to comment.