mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-28 11:10:31 +12:00
Update charactersView.py
I found the update function and it works a lot better.
This commit is contained in:
parent
546a9bebf2
commit
1852676b12
|
@ -362,9 +362,7 @@ class CharactersView:
|
|||
def _appendTemplateClicked(self, button: Gtk.ModelButton, template):
|
||||
if self.character is None:
|
||||
return
|
||||
# This following bit could be turned into a def
|
||||
for (key, value) in self.characterTemplates.templates[template].items():
|
||||
self.character.details[key]= value
|
||||
self.character.details.update(self.characterTemplates.templates[template])
|
||||
|
||||
# We have to reload the character
|
||||
self.loadCharacterData(self.character)
|
||||
|
|
Loading…
Reference in a new issue