Skip to content

Commit

Permalink
Possible solution to the problem with the reports menu (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Jan 29, 2024
1 parent 33df156 commit 963c96b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions projects/GKCore/GKCore/Controllers/BaseWinController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -976,13 +976,19 @@ public override void SetLocale()
GetControl<IMenuItem>("miCopyContent").Text = LangMan.LS(LSID.Copy);

var miPlugins = GetControl<IMenuItem>("miPlugins");
int num = miPlugins.SubItems.Count;
for (int i = 0; i < num; i++) {
for (int i = 0, num = miPlugins.SubItems.Count; i < num; i++) {
var mi = miPlugins.SubItems[i];
IPlugin plugin = (IPlugin)mi.Tag;
mi.Text = plugin.DisplayName;
}

var miReports = GetControl<IMenuItem>("miReports");
for (int i = 0, num = miReports.SubItems.Count; i < num; i++) {
var mi = miReports.SubItems[i];
IPlugin plugin = (IPlugin)mi.Tag;
mi.Text = plugin.DisplayName;
}

var miThemes = GetControl<IMenuItem>("miThemes");
miThemes.Text = LangMan.LS(LSID.Themes);
if (!AppHost.Instance.HasFeatureSupport(Feature.Themes)) {
Expand Down

0 comments on commit 963c96b

Please sign in to comment.