|
@@ -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();
|
|
|
}
|