From dd931f86455e813fb7bbefae32a3eedd153954bc Mon Sep 17 00:00:00 2001 From: Ahmed Hassanein Date: Sat, 28 Mar 2020 00:11:55 +0100 Subject: [PATCH] fix (#11) --- src/store/branches/actions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/branches/actions.ts b/src/store/branches/actions.ts index 9c7242e..d65d9fc 100644 --- a/src/store/branches/actions.ts +++ b/src/store/branches/actions.ts @@ -15,7 +15,7 @@ import { okk } from '../../helpers/helpers' // @ts-ignore import electronTimber from 'electron-timber' import { IPC_REFRESH_PRS, IPC_REFRESH_GIT } from '../../constants' -import { mainWindow } from '../../plugins/windows' +import { ipcRenderer } from 'electron' const logger = electronTimber.create({ name: 'branches/actions' }) export const fetchGit = (): ThunkAction< @@ -92,9 +92,9 @@ export const fetchGit = (): ThunkAction< const repo = await getGitRepoFromId(oldRemoteBranches[i].repoId) await repo.pull() - - mainWindow.webContents.send(IPC_REFRESH_PRS) - mainWindow.webContents.send(IPC_REFRESH_GIT) + debugger + ipcRenderer.send(IPC_REFRESH_PRS) + ipcRenderer.send(IPC_REFRESH_GIT) showNotification( {