Speed up theme load and stop display being set incorrectly for images

Fixes: https://launchpad.net/bugs/697405
This commit is contained in:
Tim Bentley 2011-01-05 16:06:56 +00:00
parent 38e72ca137
commit 13732b5bd1

View File

@ -435,8 +435,10 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
""" """
Background style Combo box has changed. Background style Combo box has changed.
""" """
self.theme.background_type = BackgroundType.to_string(index) # do not allow updates when screen is building for the first time.
self.setBackgroundPageValues() if self.updateThemeAllowed:
self.theme.background_type = BackgroundType.to_string(index)
self.setBackgroundPageValues()
def onGradientComboBoxCurrentIndexChanged(self, index): def onGradientComboBoxCurrentIndexChanged(self, index):
""" """