From ad9aa28395c0c3b7f18bf0b3ee15452c7e1dc948 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 25 Mar 2019 09:44:38 +0000 Subject: [PATCH] fix: hide restart when not running License: MIT Signed-off-by: Henrique Dias --- src/late/tray.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/late/tray.js b/src/late/tray.js index 049f686b7..a251fcd75 100644 --- a/src/late/tray.js +++ b/src/late/tray.js @@ -142,8 +142,7 @@ export default function (ctx) { menu.getMenuItemById('ipfsIsNotRunning').visible = status === STATUS.STOPPING_FINISHED menu.getMenuItemById('ipfsHasErrored').visible = status === STATUS.STARTING_FAILED || status === STATUS.STOPPING_FAILED - menu.getMenuItemById('restartIpfs').visible = status === STATUS.STOPPING_FINISHED || - status === STATUS.STARTING_FINISHED || + menu.getMenuItemById('restartIpfs').visible = status === STATUS.STARTING_FINISHED || menu.getMenuItemById('ipfsHasErrored').visible menu.getMenuItemById('startIpfs').visible = menu.getMenuItemById('ipfsIsNotRunning').visible menu.getMenuItemById('stopIpfs').visible = menu.getMenuItemById('ipfsIsRunning').visible