mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-06 00:06:03 +08:00
Probably fixes #17 issue
On OSX spp.Destroy() causes an segfault, sizer.Remove(app) removes app from the form but tries to call spp.Destroy() afterwards. By hiding and detaching I created a workaround for the OSX problem. This solution needs testing on Windows and Linux.
This commit is contained in:
parent
e2f4ce4ef6
commit
956b6ad33d
@ -302,10 +302,10 @@ class mainWindow(configBase.configWindowBase):
|
||||
newSize = self.GetSize();
|
||||
newSize.IncBy(0, -spp.GetSize().GetHeight())
|
||||
self.SetSize(newSize)
|
||||
self.sizer.Remove(spp)
|
||||
spp.Destroy()
|
||||
spp.Show(False)
|
||||
self.sizer.Detach(spp)
|
||||
for spp in self.progressPanelList:
|
||||
self.sizer.Remove(spp)
|
||||
self.sizer.Detach(spp)
|
||||
i = 2
|
||||
for spp in self.progressPanelList:
|
||||
self.sizer.Add(spp, (i,0), span=(1,4), flag=wx.EXPAND)
|
||||
|
Loading…
x
Reference in New Issue
Block a user