*/}}
YimingWu 5 月之前
父節點
當前提交
84b6273ffe
共有 1 個文件被更改,包括 11 次插入4 次删除
  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();
 }