From c6c3e731e986da34855d917f946e4e14a5726d7b Mon Sep 17 00:00:00 2001 From: per Date: Tue, 13 Nov 2018 17:18:49 +0100 Subject: [PATCH] fix saved result display settings not being loaded --- src/gui/reducers/result-display-settings.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/reducers/result-display-settings.ts b/src/gui/reducers/result-display-settings.ts index 31a7d69..ddbede9 100644 --- a/src/gui/reducers/result-display-settings.ts +++ b/src/gui/reducers/result-display-settings.ts @@ -28,6 +28,11 @@ export function resultDisplaySettings(state: ResultDisplaySettings | undefined, ...state, displayAbsoluteFocalLength: action.displayAbsoluteFocalLength } + case ActionTypes.LOAD_STATE: + return { + ...state, + ...action.savedState.resultDisplaySettings + } } return state