Permalink
Browse files

cola.main: Defer showing the GUI until it has been raised

This makes the GUI appear to startup faster since it is already raised
when it initially appears.

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
1 parent ba092d3 commit 8221f8b4dbcd78354bd8c646e930055f231240a3 @davvid davvid committed Jul 19, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 cola/main.py
View
@@ -137,8 +137,9 @@ def main():
os.chdir(model.git.get_work_tree())
# Show the GUI and start the event loop
- view.show()
ctl = MainController(model, view)
+ view.raise_()
+ view.show()
sys.exit(app.exec_())

0 comments on commit 8221f8b

Please sign in to comment.