make the main window user-resizable only if "window autosize" is set

This commit is contained in:
Gered 2016-01-16 12:31:05 -05:00
parent 684c924cec
commit 2609364f7e

View file

@ -73,6 +73,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
RESOURCES = new Resources();
registerFonts();
setResizable(Settings.windowAutoSize.get());
setLookAndFeel();
addComponentListener(this);
@ -353,6 +354,7 @@ public class Llanfair extends BorderlessFrame implements TableModelListener,
|| Settings.windowAutoSize.equals(property)
|| Settings.windowWidth.equals(property)
|| Run.NAME_PROPERTY.equals(property)) {
setResizable(Settings.windowAutoSize.get());
forceResize();
}
}