diff --git a/src/UniGetUI/MainWindow.xaml.cs b/src/UniGetUI/MainWindow.xaml.cs index 65c2ea7a9..0620655a7 100644 --- a/src/UniGetUI/MainWindow.xaml.cs +++ b/src/UniGetUI/MainWindow.xaml.cs @@ -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"));