From cf029f49a75573533f6eaf21d4af53f4cd7175b6 Mon Sep 17 00:00:00 2001 From: Dmitry Zhuravlev Date: Mon, 16 Jun 2025 13:44:51 +0200 Subject: [PATCH] [lvcs] cleanup toggle for showing system labels Follow-up: 8db1882e0072b53c19963005736980e330f71f34 GitOrigin-RevId: 1274103795c81c5fe121bc4e38f942953f79d034 --- .../platform/lvcs/impl/actions/ShowSystemLabelsAction.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/lvcs-impl/src/com/intellij/platform/lvcs/impl/actions/ShowSystemLabelsAction.kt b/platform/lvcs-impl/src/com/intellij/platform/lvcs/impl/actions/ShowSystemLabelsAction.kt index 63107b57a04a..8723e7a9a2f0 100644 --- a/platform/lvcs-impl/src/com/intellij/platform/lvcs/impl/actions/ShowSystemLabelsAction.kt +++ b/platform/lvcs-impl/src/com/intellij/platform/lvcs/impl/actions/ShowSystemLabelsAction.kt @@ -3,15 +3,14 @@ package com.intellij.platform.lvcs.impl.actions import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.openapi.actionSystem.AnActionEvent -import com.intellij.openapi.actionSystem.ToggleAction import com.intellij.openapi.components.service -import com.intellij.openapi.project.DumbAware +import com.intellij.openapi.project.DumbAwareToggleAction import com.intellij.platform.lvcs.impl.settings.ActivityViewApplicationSettings import com.intellij.platform.lvcs.impl.ui.ActivityViewDataKeys -internal class ShowSystemLabelsAction: ToggleAction(), DumbAware { +internal class ShowSystemLabelsAction: DumbAwareToggleAction() { - override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.EDT + override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT override fun isSelected(e: AnActionEvent): Boolean { return isShowSystemLabelsEnabled()