File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/app-backend-core/src Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,13 @@ async function createAppRecord (options: AppRecordOptions, backend: DevtoolsBack
82
82
83
83
await backend . api . registerApplication ( options . app )
84
84
85
- ctx . bridge . send ( BridgeEvents . TO_FRONT_APP_ADD , {
86
- appRecord : mapAppRecord ( record ) ,
87
- } )
85
+ const isAppHidden = ! ! ( await record . backend . api . getComponentDevtoolsOptions ( record . rootInstance ) ) . hide
86
+
87
+ if ( ! isAppHidden ) {
88
+ ctx . bridge . send ( BridgeEvents . TO_FRONT_APP_ADD , {
89
+ appRecord : mapAppRecord ( record ) ,
90
+ } )
91
+ }
88
92
89
93
if ( appRecordPromises . has ( options . app ) ) {
90
94
for ( const r of appRecordPromises . get ( options . app ) ) {
@@ -93,7 +97,7 @@ async function createAppRecord (options: AppRecordOptions, backend: DevtoolsBack
93
97
}
94
98
95
99
// Auto select first app
96
- if ( ctx . currentAppRecord == null && ! ( await record . backend . api . getComponentDevtoolsOptions ( record . rootInstance ) ) . hide ) {
100
+ if ( ctx . currentAppRecord == null && ! isAppHidden ) {
97
101
await selectApp ( record , ctx )
98
102
}
99
103
} else {
You can’t perform that action at this time.
0 commit comments