|
@@ -37,6 +37,8 @@ class Ide {
|
|
|
|
|
|
var renderers : Array<h3d.mat.MaterialSetup>;
|
|
var renderers : Array<h3d.mat.MaterialSetup>;
|
|
|
|
|
|
|
|
+ static var firstInit = true;
|
|
|
|
+
|
|
function new() {
|
|
function new() {
|
|
inst = this;
|
|
inst = this;
|
|
window = nw.Window.get();
|
|
window = nw.Window.get();
|
|
@@ -175,10 +177,13 @@ class Ide {
|
|
haxe.Timer.delay(function() {
|
|
haxe.Timer.delay(function() {
|
|
initializing = false;
|
|
initializing = false;
|
|
if( layout.isInitialised ) {
|
|
if( layout.isInitialised ) {
|
|
- for( file in nw.App.argv ) {
|
|
|
|
|
|
+ if( firstInit ) {
|
|
|
|
+ firstInit = false;
|
|
|
|
+ for( file in nw.App.argv ) {
|
|
if( !sys.FileSystem.exists(file) ) continue;
|
|
if( !sys.FileSystem.exists(file) ) continue;
|
|
openFile(file);
|
|
openFile(file);
|
|
}
|
|
}
|
|
|
|
+ }
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
state.state = [];
|
|
state.state = [];
|