From 5afb1d7926c3eb63dcdc2ed199fbf5cd8c62eb19 Mon Sep 17 00:00:00 2001 From: Chris Lemaire Date: Fri, 16 Feb 2024 17:46:44 +0100 Subject: [PATCH] [github] Fix inverted action available for GitHub viewed/not viewed (IDEA-346464) Fixes IDEA-346464 GitOrigin-RevId: 955105fdca88263109331cfc3a4e8c154a6361bd --- .../plugins/github/pullrequest/action/GHPRViewedStateAction.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/github/src/org/jetbrains/plugins/github/pullrequest/action/GHPRViewedStateAction.kt b/plugins/github/src/org/jetbrains/plugins/github/pullrequest/action/GHPRViewedStateAction.kt index a9c0b7b37616..f9ec08f452dd 100644 --- a/plugins/github/src/org/jetbrains/plugins/github/pullrequest/action/GHPRViewedStateAction.kt +++ b/plugins/github/src/org/jetbrains/plugins/github/pullrequest/action/GHPRViewedStateAction.kt @@ -25,7 +25,7 @@ internal abstract class GHPRViewedStateAction( if (!vm.isOnLatest) return - e.presentation.isEnabledAndVisible = vm.isViewedStateForAllChanges(changes, isViewed) + e.presentation.isEnabledAndVisible = vm.isViewedStateForAllChanges(changes, !isViewed) } override fun actionPerformed(e: AnActionEvent) {