lib/app: move stuff from `App::init` to a new function, `App::sepup`
[nit.git] / lib / app.nit
index bd74daa..3e2d737 100644 (file)
@@ -27,6 +27,10 @@ module app
 class App
        protected init do end
 
+       # Starts the internal setup of graphical and other stuff
+       # Is called just before run
+       protected fun setup do end
+
        # Main entry point of your application
        fun run do end
 
@@ -49,4 +53,5 @@ class App
 end
 
 protected fun app: App do return once new App
+app.setup
 app.run