From 491999281f6d37fa89a175dc0a6e502cc8e5b817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 3 Mar 2022 11:39:42 +0100 Subject: [PATCH] Add `allowOverridingNativeContextMenus()` (#17777) --- src/vector/platform/ElectronPlatform.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 1626426ca8..b5f5df7912 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -308,7 +308,11 @@ export default class ElectronPlatform extends VectorBasePlatform { return true; } - setNotificationCount(count: number) { + public allowOverridingNativeContextMenus(): boolean { + return true; + } + + public setNotificationCount(count: number): void { if (this.notificationCount === count) return; super.setNotificationCount(count);