From 591d21c28bd367598b01401933c33898bc82dc05 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 1 Aug 2021 17:56:38 +0100 Subject: [PATCH] Don't show tooltip / hover when no update. --- src/components/common/UpdateIndicator.tsx | 11 +++++++++-- src/components/native/Titlebar.tsx | 8 +------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/common/UpdateIndicator.tsx b/src/components/common/UpdateIndicator.tsx index 7cc752f1..9e015ce2 100644 --- a/src/components/common/UpdateIndicator.tsx +++ b/src/components/common/UpdateIndicator.tsx @@ -10,6 +10,7 @@ import { ThemeContext } from "../../context/Theme"; import IconButton from "../ui/IconButton"; import { updateSW } from "../../main"; +import Tooltip from "./Tooltip"; let pendingUpdate = false; internalSubscribe("PWA", "update", () => (pendingUpdate = true)); @@ -30,8 +31,14 @@ export default function UpdateIndicator({ style }: Props) { if (style === "titlebar") { return ( -
updateSW(true)}> - +
+ +
updateSW(true)}> + +
+
); } diff --git a/src/components/native/Titlebar.tsx b/src/components/native/Titlebar.tsx index 6e17ee42..3a8b680e 100644 --- a/src/components/native/Titlebar.tsx +++ b/src/components/native/Titlebar.tsx @@ -75,13 +75,7 @@ export function Titlebar() { {window.native.getConfig().build === "dev" && }
-
- - - -
+