We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e700dda commit 097a2efCopy full SHA for 097a2ef
plugin/src/main/kotlin/spp/jetbrains/sourcemarker/view/action/ChangeTimeAction.kt
@@ -35,6 +35,10 @@ class ChangeTimeAction(private val viewManager: LiveViewChartManager) : AnAction
35
templatePresentation.text = "Change Time"
36
}
37
38
+ override fun update(e: AnActionEvent) {
39
+ e.presentation.isEnabled = viewManager.currentView != null
40
+ }
41
+
42
override fun actionPerformed(e: AnActionEvent) {
43
JBPopupFactory.getInstance().createListPopup(
44
object : ListPopupStep<String> {
0 commit comments