diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-09-29 16:18:57 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2011-09-29 16:18:57 (GMT) |
commit | 61b5844be5727baf0c7b5e28838a40319faac18b (patch) | |
tree | 78dd7345928318b38bf87bbe0e41eb4dc2be8ca6 /activity.py | |
parent | bec5befe53747d1ddabcfe5742380b04ed81062e (diff) |
Save metadata information in all games - SL #3131
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/activity.py b/activity.py index 90bc175..b47ec0c 100644 --- a/activity.py +++ b/activity.py @@ -226,13 +226,9 @@ class MemorizeActivity(Activity): self.change_game(None, file_path, 4, 'file', self.metadata['title'], color) - def close(self, skip_save=False): - if self.game.model.is_demo: - Activity.close(self, skip_save=True) - else: - Activity.close(self) - def write_file(self, file_path): + if self.game.model.is_demo: + return if self.cardlist.pair_list_modified: self.cardlist.update_model(self.game.model) |