mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
IFT-549 Enable the Main Toolbar forcefully in onboarding lessons
Previously we have enabled the navigation bar to make the actions of the IDE header visible, but in the New UI it makes no sense. So, we have to enable the Main Toolbar now. GitOrigin-RevId: cc29207ecc86dd56280556b9a3b43df240acb53f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ff7ceba2fa
commit
6027da7a0b
@@ -102,7 +102,7 @@ abstract class OnboardingTourLessonBase(id: String) : KLesson(id, JavaLessonsBun
|
||||
|
||||
private var backupPopupLocation: Point? = null
|
||||
private var hideToolStripesPreference = false
|
||||
private var showNavigationBarPreference = true
|
||||
private var showMainToolbarPreference = true
|
||||
|
||||
@NlsSafe
|
||||
private var jdkAtStart: String = "undefined"
|
||||
@@ -171,7 +171,7 @@ abstract class OnboardingTourLessonBase(id: String) : KLesson(id, JavaLessonsBun
|
||||
backupPopupLocation = null
|
||||
|
||||
uiSettings.hideToolStripes = hideToolStripesPreference
|
||||
uiSettings.showNavigationBar = showNavigationBarPreference
|
||||
uiSettings.showNewMainToolbar = showMainToolbarPreference
|
||||
uiSettings.fireUISettingsChanged()
|
||||
|
||||
if (!lessonEndInfo.lessonPassed) {
|
||||
@@ -435,7 +435,7 @@ abstract class OnboardingTourLessonBase(id: String) : KLesson(id, JavaLessonsBun
|
||||
private fun LessonContext.checkUiSettings() {
|
||||
showInvalidDebugLayoutWarning()
|
||||
|
||||
if (!uiSettings.hideToolStripes && (uiSettings.showNavigationBar || uiSettings.showMainToolbar)) {
|
||||
if (!uiSettings.hideToolStripes && uiSettings.showNewMainToolbar) {
|
||||
// a small hack to have same tasks count. It is needed to track statistics result.
|
||||
task { }
|
||||
task { }
|
||||
@@ -449,9 +449,9 @@ abstract class OnboardingTourLessonBase(id: String) : KLesson(id, JavaLessonsBun
|
||||
|
||||
prepareRuntimeTask {
|
||||
hideToolStripesPreference = uiSettings.hideToolStripes
|
||||
showNavigationBarPreference = uiSettings.showNavigationBar
|
||||
showMainToolbarPreference = uiSettings.showNewMainToolbar
|
||||
uiSettings.hideToolStripes = false
|
||||
uiSettings.showNavigationBar = true
|
||||
uiSettings.showNewMainToolbar = true
|
||||
uiSettings.fireUISettingsChanged()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user