From 95246aa1ddc9c7d5d1f81d85e905f3b2f81366cf Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Tue, 5 Jul 2022 09:07:53 +0300 Subject: [PATCH] Simplify code Signed-off-by: Janne Savolainen --- .../update-is-ready-to-be-installed-tray-icon.injectable.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/application-update/tray-icons/update-is-ready-to-be-installed-tray-icon.injectable.ts b/src/main/application-update/tray-icons/update-is-ready-to-be-installed-tray-icon.injectable.ts index 75fd9f3820..7f097c0cbb 100644 --- a/src/main/application-update/tray-icons/update-is-ready-to-be-installed-tray-icon.injectable.ts +++ b/src/main/application-update/tray-icons/update-is-ready-to-be-installed-tray-icon.injectable.ts @@ -3,7 +3,6 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import { getInjectable } from "@ogre-tools/injectable"; -import { computed } from "mobx"; import getTrayIconPathInjectable from "../../tray/menu-icon/get-tray-icon-path.injectable"; import { trayIconInjectionToken } from "../../tray/menu-icon/tray-icon-injection-token"; import updateIsReadyToBeInstalledInjectable from "../update-is-ready-to-be-installed.injectable"; @@ -18,7 +17,7 @@ const updateIsReadyToBeInstalledTrayIconInjectable = getInjectable({ return { iconPath: getTrayIconPath("update-available"), priority: 1, - shouldBeShown: computed(() => updateIsReadyToBeInstalled.get()), + shouldBeShown: updateIsReadyToBeInstalled, }; },