mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[editor] Simplify check on Floating Toolbar available for a language
GitOrigin-RevId: bd4ce55d440bfcf171a7ce6c6a54b0405b8bcb42
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7688d3b059
commit
7472ecce92
+2
-4
@@ -30,10 +30,8 @@ internal fun findActionGroupFor(language: Language): String? {
|
||||
if (bean != null) {
|
||||
if (bean.isMinimal) {
|
||||
// check if any of the primary languages have full toolbar available
|
||||
val hasPrimaryToolbar = IdeLanguageCustomization.getInstance().primaryIdeLanguages.any {
|
||||
val bean = forLanguage(it)
|
||||
bean != null && !bean.isMinimal
|
||||
}
|
||||
val hasPrimaryToolbar = IdeLanguageCustomization.getInstance().primaryIdeLanguages
|
||||
.any { forLanguage(it) != null }
|
||||
|
||||
if (!hasPrimaryToolbar) return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user