1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* make sure the main window is not displayed out of screen bounds

This commit is contained in:
Reinhard Pointner 2014-12-22 18:58:24 +00:00
parent 8e857c498f
commit ccd66ff773

View File

@ -228,8 +228,8 @@ public class Main {
// restore previous size and location
restoreWindowBounds(frame, Settings.forPackage(MainFrame.class));
} catch (Exception e) {
// just use platform default location
frame.setLocationByPlatform(true);
// make sure the main window is not displayed out of screen bounds
frame.setLocation(120, 80);
}
frame.addWindowListener(new WindowAdapter() {