chiark / gitweb /
A fix for #182
authordaid <daid303@gmail.com>
Wed, 25 Jul 2012 08:41:05 +0000 (10:41 +0200)
committerdaid <daid303@gmail.com>
Wed, 25 Jul 2012 08:41:05 +0000 (10:41 +0200)
Cura/gui/alterationPanel.py
Cura/gui/mainWindow.py

index c47772d72e1a319e6828f1daa10a08b816d19d44..da227b2bee4db7961797f6fa6215ac920a6cfbb3 100644 (file)
@@ -43,3 +43,6 @@ class alterationPanel(wx.Panel):
                if self.currentFile == self.list.GetSelection():\r
                        profile.setAlterationFile(self.alterationFileList[self.list.GetSelection()], self.textArea.GetValue())\r
 \r
+       def updateProfileToControls(self):\r
+               self.OnSelect(None)\r
+\r
index c1d4610e950dc7f87d604a0ad5011458e664640a..112832ca94576ba4a25aba931d612cbb1f5885dd 100644 (file)
@@ -198,7 +198,8 @@ class mainWindow(configBase.configWindowBase):
                validators.warningAbove(c, lambda : (float(profile.getProfileSetting('nozzle_size')) * 3.0 / 4.0), "A bottom layer of more then %.2fmm (3/4 nozzle size) usually give bad results and is not recommended.")
                c = configBase.SettingRow(right, "Enable 'skin'", 'enable_skin', False, 'Skin prints the outer lines of the prints twice, each time with half the thickness. This gives the illusion of a higher print quality.')
 
-               nb.AddPage(alterationPanel.alterationPanel(nb), "Start/End-GCode")
+               self.alterationPanel = alterationPanel.alterationPanel(nb)
+               nb.AddPage(self.alterationPanel, "Start/End-GCode")
 
                # load and slice buttons.
                loadButton = wx.Button(self, -1, 'Load Model')
@@ -437,3 +438,4 @@ class mainWindow(configBase.configWindowBase):
        def updateProfileToControls(self):
                super(mainWindow, self).updateProfileToControls()
                self.preview3d.updateProfileToControls()
+               self.alterationPanel.updateProfileToControls()