Skip to content

Commit 0033ec1

Browse files
author
Vitaliy Guliy
committed
Prototype new panel concept
1 parent 4fcb643 commit 0033ec1

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/part/PartStackPresenter.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,13 @@ public void restore() {
480480
State prevState = state;
481481
state = State.NORMAL;
482482

483-
if (!parts.isEmpty()) {
484-
if (currentSize < MIN_PART_SIZE) {
485-
currentSize = DEFAULT_PART_SIZE;
486-
}
487-
488-
workBenchPartController.setSize(currentSize);
489-
workBenchPartController.setHidden(false);
483+
if (currentSize < MIN_PART_SIZE) {
484+
currentSize = DEFAULT_PART_SIZE;
490485
}
491486

487+
workBenchPartController.setSize(currentSize);
488+
workBenchPartController.setHidden(false);
489+
492490
// Ask the delegate to restore part stacks if this part stack was maximized.
493491
if (prevState == State.MAXIMIZED) {
494492
if (delegate != null) {

0 commit comments

Comments
 (0)