Fixed actual creation of themes. Thumbnail creation does not work yet.

This commit is contained in:
Tomas Groth 2018-10-21 22:12:53 +02:00
parent 66ce7db46f
commit 27dfa68240
2 changed files with 2 additions and 3 deletions

View File

@ -485,7 +485,7 @@ class Renderer(RegistryBase, LogMixin, RegistryProperties, DisplayWindow):
QtWidgets.QApplication.instance().processEvents()
pixmap = self.grab()
self.hide()
pixmap.save('/tmp/screen-grab.png', 'png')
#pixmap.save('/tmp/screen-grab.png', 'png')
return pixmap
self.force_page = False
return None

View File

@ -680,8 +680,7 @@ class ThemeManager(QtWidgets.QWidget, RegistryBase, Ui_ThemeManager, LogMixin, R
copyfile(image_source_path, image_destination_path)
except OSError:
self.log_exception('Failed to save theme image')
# TODO: When we get preview generation working again, fix this
# self.generate_and_save_image(name, theme)
self.generate_and_save_image(name, theme)
def generate_and_save_image(self, theme_name, theme):
"""