forked from openlp/openlp
Fixed actual creation of themes. Thumbnail creation does not work yet.
This commit is contained in:
parent
66ce7db46f
commit
27dfa68240
@ -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
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user