Fix IJPL-163481: restore What's New functionality

#IJPL-163481 Fixed

GitOrigin-RevId: 96f1410fcffd57b1094e578fc2e2f179b385634f
This commit is contained in:
Ivan Migalev
2024-10-03 18:04:28 +02:00
committed by intellij-monorepo-bot
parent ae227d128d
commit 9454e64fbc

View File

@@ -41,9 +41,9 @@ internal class WhatsNewShowOnStartCheckService : ProjectActivity {
if (content != null) { if (content != null) {
if (WhatsNewContentVersionChecker.isNeedToShowContent(content).also { logger.info("Should show What's New: $it") }) { if (WhatsNewContentVersionChecker.isNeedToShowContent(content).also { logger.info("Should show What's New: $it") }) {
val whatsNewAction = service<ActionManager>().getAction("WhatsNewAction") as? WhatsNewAction val whatsNewAction = service<ActionManager>().getAction("WhatsNewAction") as? WhatsNewAction
if (whatsNewAction == null) { if (whatsNewAction != null) {
val activityTracker = ProjectInitializationDiagnosticService.registerTracker(project, "OpenWhatsNewOnStart"); val activityTracker = ProjectInitializationDiagnosticService.registerTracker(project, "OpenWhatsNewOnStart");
whatsNewAction?.openWhatsNew(project) whatsNewAction.openWhatsNew(project)
activityTracker.activityFinished() activityTracker.activityFinished()
} }
} }