Simplify code

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2022-07-05 09:07:53 +03:00
1 parent c550964d16
commit 95246aa1dd
1 file changed
+1 -2
@@ -3,7 +3,6 @@
* Licensed under MIT License. See LICENSE in root directory for more information. * Licensed under MIT License. See LICENSE in root directory for more information.
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable } from "@ogre-tools/injectable";
import { computed } from "mobx";
import getTrayIconPathInjectable from "../../tray/menu-icon/get-tray-icon-path.injectable"; import getTrayIconPathInjectable from "../../tray/menu-icon/get-tray-icon-path.injectable";
import { trayIconInjectionToken } from "../../tray/menu-icon/tray-icon-injection-token"; import { trayIconInjectionToken } from "../../tray/menu-icon/tray-icon-injection-token";
import updateIsReadyToBeInstalledInjectable from "../update-is-ready-to-be-installed.injectable"; import updateIsReadyToBeInstalledInjectable from "../update-is-ready-to-be-installed.injectable";
@@ -18,7 +17,7 @@ const updateIsReadyToBeInstalledTrayIconInjectable = getInjectable({
return { return {
iconPath: getTrayIconPath("update-available"), iconPath: getTrayIconPath("update-available"),
priority: 1, priority: 1,
shouldBeShown: computed(() => updateIsReadyToBeInstalled.get()), shouldBeShown: updateIsReadyToBeInstalled,
}; };
}, },