Reorder IPC callbacks for settings window
This commit is contained in:
parent
5c7972893c
commit
4bed918cf8
6 changed files with 19 additions and 15 deletions
|
@ -9,6 +9,7 @@ import { COLORS_CHANGED, COLOR_SELECTED } from '../state/ducks/conversations';
|
|||
export const dispatchItemsMiddleware: Middleware = ({
|
||||
getState,
|
||||
}) => next => action => {
|
||||
const result = next(action);
|
||||
if (
|
||||
action.type === 'items/PUT' ||
|
||||
action.type === 'items/PUT_EXTERNAL' ||
|
||||
|
@ -20,6 +21,5 @@ export const dispatchItemsMiddleware: Middleware = ({
|
|||
) {
|
||||
ipcRenderer.send('preferences-changed', getState().items);
|
||||
}
|
||||
|
||||
return next(action);
|
||||
return result;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue