diff --git a/app/src/actions/Tree.ts b/app/src/actions/Tree.ts index 14301de..886699d 100644 --- a/app/src/actions/Tree.ts +++ b/app/src/actions/Tree.ts @@ -68,11 +68,17 @@ export const togglePause = (tree?: q.Tree) => (dispatch: Dispatc dispatch(globalActions.showNotification('Applying recorded changes.')) } + // Allow for notification to be displayed + setTimeout(() => { + tree && tree.applyUnmergedChanges() + if (paused && changes > 0) { + dispatch(globalActions.showNotification(`Sucessfully applied ${changes} changes.`)) + } + }, 50) + dispatch({ type: paused ? ActionTypes.TREE_RESUME_UPDATES : ActionTypes.TREE_PAUSE_UPDATES, }) - if (paused && changes > 0) { - dispatch(globalActions.showNotification(`Sucessfully applied ${changes} changes.`)) - } + }