Compare commits

..

No commits in common. "ec5101e23d133f8358eef1511c0a62005f05367d" and "4af5f8313b9a7b0bcac4bc88a4bb4e16ae51bf0e" have entirely different histories.

View File

@ -145,10 +145,10 @@ class ConfigureDialog(QtWidgets.QDialog):
value = self.settings.value('font') value = self.settings.value('font')
self.editor_values['font'] = value self.editor_values['font'] = value
self.editor_font_combobox.setCurrentFont(QtGui.QFont(value)) self.editor_font_combobox.setCurrentFont(QtGui.QFont(value))
if self.settings.value.contains('size'): if settings.value.contains('size')
value = self.settings.value('size') value = self.settings.value('size')
self.editor_values['size'] = int(value) self.editor_values['size'] = int(size)
self.editor_size.setValue(int(value)) self.editor_size.setValue(int(size))
self.settings.endGroup() self.settings.endGroup()
# Renderer settings # Renderer settings
self.settings.beginGroup('render') self.settings.beginGroup('render')
@ -201,7 +201,7 @@ class ConfigureDialog(QtWidgets.QDialog):
def on_editor_font_changed(self, font): def on_editor_font_changed(self, font):
"""Set the new font if the font has changed""" """Set the new font if the font has changed"""
self.editor_values['font'] = font.family() self.editor_values['font'] = font.family()
def on_editor_size_changed(self, size): def on_editor_size_changed(self, size):
"""Set the new size if the size has changed""" """Set the new size if the size has changed"""
self.editor_values['size'] = size self.editor_values['size'] = size