Skip to content

Commit

Permalink
Prevent crashing in full screen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed Dec 15, 2024
1 parent 8d21e24 commit f6bb076
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/LegendaryLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,21 @@ public override async void OnApplicationStarted(OnApplicationStartedEventArgs ar
}
else
{
Window window = PlayniteApi.Dialogs.CreateWindow(new WindowCreationOptions
Window window = null;
if (PlayniteApi.ApplicationInfo.Mode == ApplicationMode.Desktop)
{
ShowMaximizeButton = false,
});
window = PlayniteApi.Dialogs.CreateWindow(new WindowCreationOptions
{
ShowMaximizeButton = false,
});
}
else
{
window = new Window
{
Background = System.Windows.Media.Brushes.DodgerBlue
};
}
window.DataContext = successUpdates;
window.Title = $"{ResourceProvider.GetString(LOC.Legendary3P_PlayniteExtensionsUpdates)}";
window.Content = new LegendaryUpdater();
Expand Down

0 comments on commit f6bb076

Please sign in to comment.