From 71cf3d8f075b0f42c0c55dcbb3b38a84b3879fdb Mon Sep 17 00:00:00 2001 From: AnotherCommander Date: Sun, 25 Jun 2017 13:04:23 +0200 Subject: [PATCH] Generate noteGuiWillChange notification also when going to short and long range chart screens. Closes #233. --- src/Core/Entities/PlayerEntityControls.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Entities/PlayerEntityControls.m b/src/Core/Entities/PlayerEntityControls.m index fce7570e8..1a8aba2ad 100644 --- a/src/Core/Entities/PlayerEntityControls.m +++ b/src/Core/Entities/PlayerEntityControls.m @@ -3933,6 +3933,7 @@ - (void) pollGuiScreenControlsWithFKeyAlias:(BOOL)fKeyAlias saved_chart_zoom = target_chart_zoom; } target_chart_zoom = CHART_MAX_ZOOM; + [self noteGUIWillChangeTo:GUI_SCREEN_LONG_RANGE_CHART]; [self setGuiToLongRangeChartScreen]; } else @@ -3942,7 +3943,7 @@ - (void) pollGuiScreenControlsWithFKeyAlias:(BOOL)fKeyAlias target_chart_zoom = saved_chart_zoom; } //target_chart_centre = cursor_coordinates = [[UNIVERSE systemManager] getCoordinatesForSystem:target_system_id inGalaxy:galaxy_number]; - + [self noteGUIWillChangeTo:GUI_SCREEN_SHORT_RANGE_CHART]; [self setGuiToShortRangeChartScreen]; } }