mirror of
https://github.com/captbaritone/webamp
synced 2024-11-23 00:34:42 +00:00
Add back resetWindowLayout
This commit is contained in:
parent
96ed2b353c
commit
35f4004caa
@ -24,6 +24,7 @@ export {
|
||||
toggleMainWindowShadeMode,
|
||||
windowsHaveBeenCentered,
|
||||
centerWindowsIfNeeded,
|
||||
resetWindowLayout,
|
||||
browserWindowSizeChanged
|
||||
} from "./windows";
|
||||
export {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user