mirror of
https://github.com/processing/processing4.git
synced 2026-02-26 08:44:39 +01:00
implement last.sketch.restore feature
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user