File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
apps/remix-ide/src/app/components Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ export class PinnedPanel extends AbstractPanel {
5555 }
5656 this . loggedState = await this . call ( 'pluginStateLogger' , 'getPluginState' , profile . name )
5757 this . addView ( profile , view )
58+ this . plugins [ profile . name ] . pinned = true
59+ this . plugins [ profile . name ] . active = true
5860 let pinnedPanelState = window . localStorage . getItem ( 'pinnedPanelState' )
5961 let isClosed = false
6062 if ( pinnedPanelState ) {
@@ -63,13 +65,6 @@ export class PinnedPanel extends AbstractPanel {
6365 isClosed = true
6466 await this . closePlugin ( profile )
6567 }
66- else {
67- this . plugins [ profile . name ] . pinned = true
68- this . plugins [ profile . name ] . active = true
69- }
70- } else {
71- this . plugins [ profile . name ] . pinned = true
72- this . plugins [ profile . name ] . active = true
7368 }
7469 this . renderComponent ( )
7570 this . events . emit ( 'pinnedPlugin' , profile , isClosed )
You can’t perform that action at this time.
0 commit comments