Update charactersView.py

I found the update function and it works a lot better.
This commit is contained in:
TheShadowOfHassen 2023-02-22 12:35:33 -05:00
parent 546a9bebf2
commit 1852676b12

View file

@ -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)