Skip to content

Commit

Permalink
Fix: Some Fullscreen themes causing crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Nov 9, 2022
1 parent 9857cb4 commit 9c3008f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Playnite.FullscreenApp/Controls/Views/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ public override void OnApplyTemplate()
AssignButtonWithCommand(ref ButtonProgramUpdate, "PART_ButtonProgramUpdate", mainModel.OpenUpdatesCommand);
AssignButtonWithCommand(ref ButtonMainMenu, "PART_ButtonMainMenu", mainModel.OpenMainMenuCommand);
AssignButtonWithCommand(ref ButtonNotifications, "PART_ButtonNotifications", mainModel.OpenNotificationsMenuCommand);
AutomationProperties.SetName(ButtonProgramUpdate, LOC.UpdateIsAvailableNotificationBody.GetLocalized());
AutomationProperties.SetName(ButtonMainMenu, LOC.ApplicationMenu.GetLocalized());
AutomationProperties.SetName(ButtonNotifications, LOC.Notifications.GetLocalized());
if (ButtonProgramUpdate != null) AutomationProperties.SetName(ButtonProgramUpdate, LOC.UpdateIsAvailableNotificationBody.GetLocalized());
if (ButtonMainMenu != null) AutomationProperties.SetName(ButtonMainMenu, LOC.ApplicationMenu.GetLocalized());
if (ButtonNotifications != null) AutomationProperties.SetName(ButtonNotifications, LOC.Notifications.GetLocalized());

if (ButtonProgramUpdate != null)
{
Expand Down

0 comments on commit 9c3008f

Please sign in to comment.