*/}}
YimingWu 6 ay önce
ebeveyn
işleme
84b6273ffe
1 değiştirilmiş dosya ile 11 ekleme ve 4 silme
  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();
 }