mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-86523: Do not wait for backend to display feature buttons that should be always available
Space-RevId: ff78d92ab4837ca2ebf4cd3d4a7aa61ae5744f06 GitOrigin-RevId: d1b9bb1518568b80bd90c7c9a5cddc0ebd73d8d7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e4b01a7884
commit
83ecf18bf9
+1
@@ -52,6 +52,7 @@ interface WelcomeRightTabContentProvider {
|
||||
*/
|
||||
class FeatureButtonModelWithBackend(
|
||||
val featureKey: String,
|
||||
val isAlwaysAvailable: Boolean = false,
|
||||
text: String,
|
||||
icon: IconKey,
|
||||
tint: Color = Color.Unspecified,
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@ class WelcomeScreenRightTab(
|
||||
Column(modifier = modifier.wrapContentSize(Alignment.Center), verticalArrangement = Arrangement.spacedBy(16.dp)) {
|
||||
// Show only available backend features (and all non-backend features)
|
||||
val featureModels = contentProvider.getFeatureButtonModels(project).filter {
|
||||
it !is FeatureButtonModelWithBackend || it.featureKey in backendFeatureIds
|
||||
it !is FeatureButtonModelWithBackend || it.isAlwaysAvailable || it.featureKey in backendFeatureIds
|
||||
}
|
||||
|
||||
for (row in featureModels.chunked(3)) {
|
||||
|
||||
Reference in New Issue
Block a user