mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
stripe: hide disabled actions
GitOrigin-RevId: 27051a273482f181c03fc5d6d09d438d8539ed38
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d655523012
commit
2fbbf63899
@@ -101,7 +101,7 @@ class StripeActionGroup: ActionGroup(), DumbAware {
|
||||
|
||||
override fun update(e: AnActionEvent) {
|
||||
super.update(e)
|
||||
e.presentation.isVisible = buttonState.isPinned(toolWindowId)
|
||||
e.presentation.isVisible = e.presentation.isEnabled && buttonState.isPinned(toolWindowId)
|
||||
Toggleable.setSelected(e.presentation, isSelected(e))
|
||||
}
|
||||
|
||||
@@ -175,6 +175,7 @@ class StripeActionGroup: ActionGroup(), DumbAware {
|
||||
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
|
||||
override fun update(e: AnActionEvent) {
|
||||
super.update(e)
|
||||
e.presentation.isVisible = e.presentation.isVisible && e.presentation.isEnabled
|
||||
e.presentation.putClientProperty(ActionUtil.INLINE_ACTIONS, listOf(TogglePinAction(ac.toolWindowId)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user