From 71adca131ce7043ab9cd7c553cda0f88ccd2dd7a Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 22 Sep 2018 21:04:27 -0700 Subject: [PATCH] Add back resetWindowLayout --- js/actionCreators/index.ts | 1 + js/actionCreators/windows.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/js/actionCreators/index.ts b/js/actionCreators/index.ts index 2745302d..838fd7bd 100644 --- a/js/actionCreators/index.ts +++ b/js/actionCreators/index.ts @@ -24,6 +24,7 @@ export { toggleMainWindowShadeMode, windowsHaveBeenCentered, centerWindowsIfNeeded, + resetWindowLayout, browserWindowSizeChanged } from "./windows"; export { diff --git a/js/actionCreators/windows.ts b/js/actionCreators/windows.ts index 39bc8ad8..829335f8 100644 --- a/js/actionCreators/windows.ts +++ b/js/actionCreators/windows.ts @@ -10,7 +10,8 @@ import { TOGGLE_WINDOW_SHADE_MODE, SET_WINDOW_VISIBILITY, WINDOWS_HAVE_BEEN_CENTERED, - BROWSER_WINDOW_SIZE_CHANGED + BROWSER_WINDOW_SIZE_CHANGED, + RESET_WINDOW_LAYOUT } from "../actionTypes"; import { getPositionDiff, SizeDiff } from "../resizeUtils"; @@ -188,6 +189,10 @@ export function browserWindowSizeChanged() { return { type: BROWSER_WINDOW_SIZE_CHANGED, height, width }; } +export function resetWindowLayout(): Dispatchable { + return { type: RESET_WINDOW_LAYOUT }; +} + export function ensureWindowsAreOnScreen(): Dispatchable { return (dispatch, getState) => { const state = getState();