Skip to content

Commit

Permalink
remove auto focusing image if add only one
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec committed Sep 13, 2017
1 parent 45bc507 commit 071bfe2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/renderer/ipc/listen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ export default function listenIpc() {
})

ipcRenderer.on(IpcChannel.FILE_SELECTED, (event: any, data: IImageFile[]) => {
const emptyTask = store.getState().tasks.length === 0
store.dispatch(actions.taskAdd(data))
if (emptyTask && data.length === 1) {
store.dispatch(actions.taskDetail(data[0].id))
}
})

ipcRenderer.on(IpcChannel.APP_UPDATE, (event: any, data: IUpdateInfo) => {
Expand Down

0 comments on commit 071bfe2

Please sign in to comment.