Commit 14fc6905ec627337a416471cf8d5722968cf9824

Authored by Thiago Franco de Moraes
1 parent 24463398

Closing in mac app

invesalius/gui/frame.py
... ... @@ -251,7 +251,8 @@ class Frame(wx.Frame):
251 251 Exit InVesalius.
252 252 """
253 253 self.Destroy()
254   - #sys.exit(0)
  254 + if hasattr(sys,"frozen") and sys.platform == 'darwin':
  255 + sys.exit(0)
255 256  
256 257 def _HideContentPanel(self, pubsub_evt):
257 258 """
... ...
invesalius/invesalius.py
... ... @@ -82,6 +82,9 @@ class InVesalius(wx.App):
82 82 def Startup2(self):
83 83 self.control = self.splash.control
84 84 self.frame = self.splash.main
  85 + self.SetTopWindow(self.frame)
  86 + self.frame.Show()
  87 + self.frame.Raise()
85 88  
86 89 # ------------------------------------------------------------------
87 90  
... ...