diff options
Diffstat (limited to 'gui/src/renderer')
| -rw-r--r-- | gui/src/renderer/app.tsx | 4 | ||||
| -rw-r--r-- | gui/src/renderer/lib/history.tsx | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx index 7fc2411855..7b4b63c969 100644 --- a/gui/src/renderer/app.tsx +++ b/gui/src/renderer/app.tsx @@ -177,7 +177,9 @@ export default class AppRenderer { this.reduxActions.userInterface.setMacOsScrollbarVisibility(visibility); }); - IpcRendererEventChannel.navigation.listenReset(() => this.history.dismiss(true)); + IpcRendererEventChannel.navigation.listenReset(() => + this.history.dismiss(true, transitions.none), + ); // Request the initial state from the main process const initialState = IpcRendererEventChannel.state.get(); diff --git a/gui/src/renderer/lib/history.tsx b/gui/src/renderer/lib/history.tsx index a391e70fee..4abdcd5fcb 100644 --- a/gui/src/renderer/lib/history.tsx +++ b/gui/src/renderer/lib/history.tsx @@ -88,9 +88,9 @@ export default class History { this.notify(transitions.show); }; - public dismiss = (all?: boolean) => { + public dismiss = (all?: boolean, transition = transitions.dismiss) => { if (this.popImpl(all ? this.index : 1)) { - this.notify(transitions.dismiss); + this.notify(transition); } }; |
