Skip to content

Commit

Permalink
ContextMenu -> ContextMenuUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
glennsl committed Jan 18, 2020
1 parent adde3be commit ef30fbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Model/Actions.re
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type t =
| TextInput([@opaque] Revery.Events.textInputEvent)
| HoverShow
| ChangeMode([@opaque] Vim.Mode.t)
| ContextMenuUpdate([@opaque] ContextMenu.t(t))
| ContextMenuUpdated([@opaque] ContextMenu.t(t))
| ContextMenuOverlayClicked
| ContextMenuItemSelected(ContextMenu.item(t))
| DiagnosticsHotKey
Expand Down
2 changes: 1 addition & 1 deletion src/Store/ContextMenuStore.re
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let start = () => {
let default = (state, Isolinear.Effect.none);

switch (action) {
| ContextMenuUpdate(model) => (
| ContextMenuUpdated(model) => (
{...state, contextMenu: Some(model)},
Isolinear.Effect.none,
)
Expand Down
2 changes: 1 addition & 1 deletion src/UI/Root.re
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let make = (~state: State.t, ()) => {
} = state;

let onContextMenuUpdate = model =>
GlobalContext.current().dispatch(ContextMenuUpdate(model));
GlobalContext.current().dispatch(ContextMenuUpdated(model));

let statusBarVisible =
Selectors.getActiveConfigurationValue(state, c =>
Expand Down

0 comments on commit ef30fbb

Please sign in to comment.