mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
OPENIDE #193 Remove dialog with feedback after jetbrains onboarding
(cherry picked from commit813fc8b736) (cherry picked from commit14798d2fd6)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
//
|
||||
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
package training.ui
|
||||
|
||||
import com.intellij.icons.AllIcons
|
||||
@@ -92,7 +95,8 @@ fun showOnboardingFeedbackNotification(project: Project?, onboardingFeedbackData
|
||||
showOnboardingLessonFeedbackForm(project, onboardingFeedbackData, true)
|
||||
}
|
||||
})
|
||||
notification.notify(project)
|
||||
// mute notification in OpenIDE
|
||||
//notification.notify(project)
|
||||
}
|
||||
|
||||
fun showOnboardingLessonFeedbackForm(project: Project?,
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
//
|
||||
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
package training.ui.views
|
||||
|
||||
import com.intellij.icons.AllIcons
|
||||
@@ -204,10 +207,11 @@ internal class LearnPanel(val learnToolWindow: LearnToolWindow) : JPanel() {
|
||||
LessonManager.instance.stopLesson()
|
||||
val langSupport = LangManager.getInstance().getLangSupport()
|
||||
val project = learnToolWindow.project
|
||||
langSupport?.onboardingFeedbackData?.let {
|
||||
showOnboardingLessonFeedbackForm(project, it, false)
|
||||
langSupport.onboardingFeedbackData = null
|
||||
}
|
||||
// Hide dialog in OpenIDE
|
||||
//langSupport?.onboardingFeedbackData?.let {
|
||||
// showOnboardingLessonFeedbackForm(project, it, false)
|
||||
// langSupport.onboardingFeedbackData = null
|
||||
//}
|
||||
|
||||
if (langSupport != null && isLearningProject(project, langSupport.primaryLanguage)) {
|
||||
CloseProjectWindowHelper().windowClosing(project)
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
//
|
||||
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
package training.ui.views
|
||||
|
||||
import com.intellij.lang.Language
|
||||
@@ -51,7 +54,7 @@ class ModulesPanel(project: Project) : JPanel() {
|
||||
modulesPanel.maximumSize = Dimension(UISettings.getInstance().let { it.panelWidth - (it.westInset + it.eastInset) }, 10000)
|
||||
add(modulesPanel)
|
||||
add(Box.createVerticalGlue())
|
||||
addFooter()
|
||||
//addFooter()
|
||||
}
|
||||
|
||||
private fun addHeaderPanel() {
|
||||
|
||||
Reference in New Issue
Block a user