From 0ab2407a389f93b6134bd79b0ac5b97a87f83f46 Mon Sep 17 00:00:00 2001 From: FenPhoenix Date: Tue, 24 Aug 2021 07:21:00 -0700 Subject: [PATCH] Fix show/hide filters menu wasn't being localized until next startup --- .../CustomControls/Static_LazyLoaded/FilterControlsLLMenu.cs | 4 +++- AngelLoader/Forms/MainForm.cs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AngelLoader/Forms/CustomControls/Static_LazyLoaded/FilterControlsLLMenu.cs b/AngelLoader/Forms/CustomControls/Static_LazyLoaded/FilterControlsLLMenu.cs index b3ae59977..6ff9a3d32 100644 --- a/AngelLoader/Forms/CustomControls/Static_LazyLoaded/FilterControlsLLMenu.cs +++ b/AngelLoader/Forms/CustomControls/Static_LazyLoaded/FilterControlsLLMenu.cs @@ -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; diff --git a/AngelLoader/Forms/MainForm.cs b/AngelLoader/Forms/MainForm.cs index 855ca1d66..dd6ce5d0a 100644 --- a/AngelLoader/Forms/MainForm.cs +++ b/AngelLoader/Forms/MainForm.cs @@ -1208,6 +1208,7 @@ private void Localize(bool startup) FilterShowRecentAtTopButton.ToolTipText = LText.FilterBar.ShowRecentAtTop; FilterControlsShowHideButton.ToolTipText = LText.FilterBar.ShowHideMenuToolTip; + FilterControlsLLMenu.Localize(); #endregion