mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-07-02 21:21:00 +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):
|
def _appendTemplateClicked(self, button: Gtk.ModelButton, template):
|
||||||
if self.character is None:
|
if self.character is None:
|
||||||
return
|
return
|
||||||
# This following bit could be turned into a def
|
self.character.details.update(self.characterTemplates.templates[template])
|
||||||
for (key, value) in self.characterTemplates.templates[template].items():
|
|
||||||
self.character.details[key]= value
|
|
||||||
|
|
||||||
# We have to reload the character
|
# We have to reload the character
|
||||||
self.loadCharacterData(self.character)
|
self.loadCharacterData(self.character)
|
||||||
|
|
Loading…
Reference in a new issue