Skip to content

Commit

Permalink
Fix show/hide filters menu wasn't being localized until next startup
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Aug 24, 2021
1 parent 2497de0 commit 0ab2407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ internal static void Construct(MainForm form, IContainer components)
Localize();
}

private static void Localize()
internal static void Localize()
{
if (!_constructed) return;

TitleMenuItem.Text = LText.FilterBar.ShowHideMenu_Title;
AuthorMenuItem.Text = LText.FilterBar.ShowHideMenu_Author;
ReleaseDateMenuItem.Text = LText.FilterBar.ShowHideMenu_ReleaseDate;
Expand Down
1 change: 1 addition & 0 deletions AngelLoader/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ private void Localize(bool startup)
FilterShowRecentAtTopButton.ToolTipText = LText.FilterBar.ShowRecentAtTop;

FilterControlsShowHideButton.ToolTipText = LText.FilterBar.ShowHideMenuToolTip;
FilterControlsLLMenu.Localize();

#endregion

Expand Down

0 comments on commit 0ab2407

Please sign in to comment.