implement last.sketch.restore feature

This commit is contained in:
benfry
2010-06-20 23:13:31 +00:00
parent 992f254c25
commit ada3acd3bc

View File

@@ -278,8 +278,11 @@ public class Base {
* application is first launched.
*/
protected boolean restoreSketches() {
// figure out window placement
if (!Preferences.getBoolean("last.sketch.restore")) {
return false;
}
// figure out window placement
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
boolean windowPositionValid = true;