فهرست منبع

TextEditor: Show window after text_widget loads

rhin123 6 سال پیش
والد
کامیت
1bcf3968f2
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Applications/TextEditor/main.cpp

+ 2 - 1
Applications/TextEditor/main.cpp

@@ -9,7 +9,6 @@ int main(int argc, char** argv)
 
 
     window->set_rect(20, 200, 640, 400);
     window->set_rect(20, 200, 640, 400);
     window->set_should_exit_event_loop_on_close(true);
     window->set_should_exit_event_loop_on_close(true);
-    window->show();
     window->set_icon_path("/res/icons/TextEditor16.png");
     window->set_icon_path("/res/icons/TextEditor16.png");
 
 
     auto* text_widget = new TextEditorWidget();
     auto* text_widget = new TextEditorWidget();
@@ -18,5 +17,7 @@ int main(int argc, char** argv)
     if (argc >= 2)
     if (argc >= 2)
         text_widget->open_sesame(argv[1]);
         text_widget->open_sesame(argv[1]);
 
 
+    window->show();
+
     return app.exec();
     return app.exec();
 }
 }