Skip to content

Commit

Permalink
fix: Crash in DevMode update stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSusa committed Jun 17, 2019
1 parent e16c300 commit 7ab6b35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/midi-bricks-electron/public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function createWindow() {
: isAllowedToUpdateCli
!isAllowedToUpdate && log.warn('Updates were disabled! ')

if (isAllowedToUpdate) {
if (isAllowedToUpdate && !isDev) {
const {
isAutoDownload = appInitSettings.isAutoDownload,
isAllowedPrerelease = appInitSettings.isAllowedPrerelease,
Expand Down
11 changes: 11 additions & 0 deletions packages/midi-bricks/src/actions/undo-redo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { generateActions, createActionTypes } from 'redux-generate'

const TypeUndoRedo = [
'UNDO_REDO_UPDATE',
'UNDO_REDO_DELETE',
'UNDO_REDO_LOAD',
]

export const ActionTypeUndoRedo = createActionTypes(TypeUndoRedo)

export const Actions = {...generateActions(ActionTypeUndoRedo)}

0 comments on commit 7ab6b35

Please sign in to comment.