ui/qt/toolkit.cpp

changeset 519
8884c7fbe4cb
parent 518
45ed276ba7a4
child 526
f6a6b0b08641
--- a/ui/qt/toolkit.cpp	Wed Mar 26 21:15:20 2025 +0100
+++ b/ui/qt/toolkit.cpp	Wed Mar 26 21:47:04 2025 +0100
@@ -45,9 +45,6 @@
 static ui_callback   exit_func;
 void                 *exit_data;
 
-static ui_callback appclose_fnc;
-static void *appclose_udata;
-
 static int is_toplevel_realized = 0;
 
 int app_argc;
@@ -87,10 +84,12 @@
 }
 
 void ui_main() {
+    if(startup_func) {
+        startup_func(NULL, startup_data);
+    }
     application->exec();
-    
-    if(appclose_fnc) {
-        appclose_fnc(NULL, appclose_udata);
+    if(exit_func) {
+        exit_func(NULL, exit_data);
     }
     uic_store_app_properties();
     
@@ -98,7 +97,7 @@
 }
 
 void ui_show(UiObject *obj) {
-    //obj->widget->show();
+    obj->widget->show();
 }
 
 void ui_close(UiObject *obj) {

mercurial