*/}}
YimingWu vor 5 Monaten
Ursprung
Commit
84b6273ffe
1 geänderte Dateien mit 11 neuen und 4 gelöschten Zeilen
  1. 11 4
      src/hello_android.c

+ 11 - 4
src/hello_android.c

@@ -38,10 +38,17 @@ int main(int argc, char *argv[]){
 
     laRegisterUiTemplate("my_panel","My Panel", MyPanel,0,0,"Demonstration", 0,0,0);
 
-    laWindow* w = laDesignWindow(-1,-1,600,600);
-    laLayout* l = laDesignLayout(w,"My Layout");
-    laCreatePanel(l->FirstBlock,"LAUI_about");
+    laRefreshUDFRegistries();
+    laEnsureUserPreferences();
+
+    laSaveProp("la.audio");
+
+    if(!MAIN.Windows.pFirst){
+        laWindow* w = laDesignWindow(-1,-1,600,600);
+        laLayout* l = laDesignLayout(w,"My Layout");
+        laCreatePanel(l->FirstBlock,"LAUI_about");
+        laStartWindow(w);
+    }
 
-    laStartWindow(w);
     laMainLoop();
 }