Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Rogier committed Jun 22, 2022
1 parent c5425c7 commit 5e7888e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project/Source/Forms/Boxes/Tools/NavigationForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public DateTime Date
LabelMoonriseValue.Text = row.MoonriseAsString;
LabelMoonsetValue.Text = row.MoonsetAsString;
LabelMoonriseValue.Visible = row.Moonrise is not null;
LabelMoonrise.Visible = LabelMoonriseValue.Visible;
LabelMoonrise.Visible = row.Moonrise is not null;
LabelMoonsetValue.Visible = row.Moonset is not null;
LabelMoonset.Visible = LabelMoonsetValue.Visible;
LabelMoonset.Visible = row.Moonset is not null;
//
LabelEventSeasonValue.Text = AppTranslations.SeasonChanges.GetLang(row.SeasonChange);
if ( LabelEventSeasonValue.Text.Length == 0 )
Expand Down
3 changes: 2 additions & 1 deletion Project/Source/Forms/MainForm/UI/MainForm.GoToDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public void GoToDate(DateTime date,
if ( bringToFront )
SystemManager.TryCatch(() =>
{
if ( !Visible && !onlyIfOpened )
if ( onlyIfOpened ) return;
if ( !Visible )
MenuShowHide_Click(null, null);
else
if ( WindowState == FormWindowState.Minimized && !onlyIfNotMinimized )
Expand Down

0 comments on commit 5e7888e

Please sign in to comment.