1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix topbar

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-01-24 15:24:18 -05:00
parent bb905bc0e5
commit 18ec143262

View File

@ -46,7 +46,8 @@ const NonInjectedTopBar = (({ items, children, ...rest }: Props & Dependencies)
const toggleAppContextMenu = () => {
toggleIsAppContextMenuOpen();
if (isAppContextMenuOpen) {
if (!isAppContextMenuOpen) {
// This is done when the current value is false as that is the rising edge
emitOpenAppMenuAsContextMenu();
}
};