Skip to content
Permalink
Browse files

Fix issue where the editor size wasn't properly restored.

  • Loading branch information...
steffen-wilke committed Jan 29, 2019
1 parent 2e207c0 commit 4bec9b30523c9eeecfe28ba5bf58ad244d37567c
Showing with 3 additions and 5 deletions.
  1. +3 −5 utiliti/src/de/gurkenlabs/utiliti/Program.java
@@ -307,15 +307,13 @@ public boolean terminating() {
}
});

if (userPreferences.getWidth() != 0 && userPreferences.getHeight() != 0) {
window.setSize(userPreferences.getWidth(), userPreferences.getHeight());
}

window.setLocationRelativeTo(null);
if (userPreferences.getFrameState() != JFrame.ICONIFIED && userPreferences.getFrameState() != JFrame.NORMAL) {
window.setExtendedState(userPreferences.getFrameState());
} else if (userPreferences.getWidth() != 0 && userPreferences.getHeight() != 0) {
window.setSize(userPreferences.getWidth(), userPreferences.getHeight());
}

window.setLocationRelativeTo(null);
return window;
}

0 comments on commit 4bec9b3

Please sign in to comment.
You can’t perform that action at this time.