From 1d5af1e2ae7e901891829bf675ce57718d58caa4 Mon Sep 17 00:00:00 2001 From: JFronny Date: Sun, 12 May 2024 14:52:50 +0200 Subject: [PATCH] fix: update problems after selecting contest --- .../jfronny/sdom/actions/SDContestSelectionAction.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/kotlin/io/gitlab/jfronny/sdom/actions/SDContestSelectionAction.kt b/src/main/kotlin/io/gitlab/jfronny/sdom/actions/SDContestSelectionAction.kt index b4477f3..99c47a5 100644 --- a/src/main/kotlin/io/gitlab/jfronny/sdom/actions/SDContestSelectionAction.kt +++ b/src/main/kotlin/io/gitlab/jfronny/sdom/actions/SDContestSelectionAction.kt @@ -71,6 +71,16 @@ class SDContestSelectionComboBoxAction : ComboBoxAction(), DumbAware { override fun actionPerformed(e: AnActionEvent) { SDom.currentContest = contest + SDGetProblemsAction().actionPerformed( + AnActionEvent( + null, + DataContext.EMPTY_CONTEXT, + ActionPlaces.UNKNOWN, + Presentation(), + ActionManager.getInstance(), + 0 + ) + ) } } }