~emihalac/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/plugin.py

  • Committer: Peter Bienstman
  • Date: 2017-03-24 18:40:39 UTC
  • Revision ID: peter.bienstman@ugent.be-20170324184039-cbecoelgmdu72iag
Study mode bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                        criterion.active_card_type_added(component)
77
77
                        db.update_criterion(criterion)
78
78
        if self.database().is_loaded() and self.review_reset_needed:
79
 
            self.review_controller().reset()
 
79
            self.controller().reset_study_mode()
80
80
            # We need to log 'started_scheduler' events manually and not
81
81
            # from e.g. the 'activate' function of the scheduler because
82
82
            # during startup, the database is not yet loaded when the
119
119
            return True
120
120
        # Make necessary side effects happen.
121
121
        if self.review_reset_needed:
122
 
            self.review_controller().reset()
 
122
            self.controller().reset_study_mode()
123
123
            self.log().started_scheduler()
124
124
        # Use names instead of instances here in order to survive pickling.
125
125
        if self.__class__.__name__ in self.config()["active_plugins"]: