Skip to content

Commit

Permalink
fix: take screenshots and download while gc running
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Henrique Dias <[email protected]>
  • Loading branch information
hacdias committed Apr 18, 2020
1 parent 1b3dee1 commit fdcc115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ module.exports = function (ctx) {
menu.getMenuItemById('startIpfs').visible = menu.getMenuItemById('ipfsIsNotRunning').visible
menu.getMenuItemById('stopIpfs').visible = menu.getMenuItemById('ipfsIsRunning').visible

menu.getMenuItemById('takeScreenshot').enabled = menu.getMenuItemById('ipfsIsRunning').visible
menu.getMenuItemById('downloadHash').enabled = menu.getMenuItemById('ipfsIsRunning').visible
menu.getMenuItemById('takeScreenshot').enabled = status === STATUS.STARTING_STARTED
menu.getMenuItemById('downloadHash').enabled = status === STATUS.STARTING_STARTED

menu.getMenuItemById('moveRepositoryLocation').enabled = !gcRunning
menu.getMenuItemById('runGarbageCollector').enabled = menu.getMenuItemById('ipfsIsRunning').visible && !gcRunning
Expand Down

0 comments on commit fdcc115

Please sign in to comment.