Skip to content

Commit 7c91b7e

Browse files
committed
fix maximize
1 parent 6d52cb9 commit 7c91b7e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apps/remix-ide/src/app/components/pinned-panel.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)