Skip to content

Commit

Permalink
Fix update available notification able to show twice (lensapp#2295)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Malton <sebastian@malton.name>
  • Loading branch information
Nokel81 committed Mar 10, 2021
1 parent b3ce845 commit 2e8f94b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/ipc/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { areArgsUpdateAvailableFromMain, UpdateAvailableChannel, onCorrect, Upda
import { Notifications, notificationsStore } from "../components/notifications";
import { Button } from "../components/button";
import { isMac } from "../../common/vars";
import * as uuid from "uuid";
import { invalidKubeconfigHandler } from "./invalid-kubeconfig-handler";

function sendToBackchannel(backchannel: string, notificationId: string, data: BackchannelArg): void {
Expand All @@ -31,7 +30,7 @@ function RenderYesButtons(props: { backchannel: string, notificationId: string }
}

function UpdateAvailableHandler(event: IpcRendererEvent, ...[backchannel, updateInfo]: UpdateAvailableFromMain): void {
const notificationId = uuid.v4();
const notificationId = `update-available:${updateInfo.version}`;

Notifications.info(
(
Expand Down

0 comments on commit 2e8f94b

Please sign in to comment.