Skip to content

Commit

Permalink
rename auto_disperse to auto_disperse_when_review
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Apr 21, 2024
1 parent 14958e0 commit c606724
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def set_auto_disperse_after_sync(checked, _):


def set_auto_disperse_when_review(checked, _):
config.auto_disperse = checked
config.auto_disperse_when_review = checked


menu_auto_disperse = checkable(
Expand Down Expand Up @@ -228,7 +228,7 @@ def adjust_menu():
)
menu_auto_reschedule_after_sync.setChecked(config.auto_reschedule_after_sync)
menu_auto_disperse_after_sync.setChecked(config.auto_disperse_after_sync)
menu_auto_disperse.setChecked(config.auto_disperse)
menu_auto_disperse.setChecked(config.auto_disperse_when_review)
menu_display_memory_state.setChecked(config.display_memory_state)
menu_load_balance.setChecked(config.load_balance)
menu_for_auto_easy_days.setChecked(config.auto_easy_days)
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"days_to_reschedule": 7,
"auto_reschedule_after_sync": false,
"auto_disperse_after_sync": false,
"auto_disperse": false,
"auto_disperse_when_review": false,
"mature_ivl": 21,
"debug_notify": false,
"fsrs_stats": true,
Expand Down
12 changes: 6 additions & 6 deletions configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
DAYS_TO_RESCHEDULE = "days_to_reschedule"
AUTO_RESCHEDULE_AFTER_SYNC = "auto_reschedule_after_sync"
AUTO_DISPERSE_AFTER_SYNC = "auto_disperse_after_sync"
AUTO_DISPERSE = "auto_disperse"
AUTO_DISPERSE_WHEN_REVIEW = "auto_disperse_when_review"
MATURE_IVL = "mature_ivl"
DEBUG_NOTIFY = "debug_notify"
FSRS_STATS = "fsrs_stats"
Expand Down Expand Up @@ -95,12 +95,12 @@ def auto_disperse_after_sync(self, value):
self.save()

@property
def auto_disperse(self):
return self.data[AUTO_DISPERSE]
def auto_disperse_when_review(self):
return self.data[AUTO_DISPERSE_WHEN_REVIEW]

@auto_disperse.setter
def auto_disperse(self, value):
self.data[AUTO_DISPERSE] = value
@auto_disperse_when_review.setter
def auto_disperse_when_review(self, value):
self.data[AUTO_DISPERSE_WHEN_REVIEW] = value
self.save()

@property
Expand Down
2 changes: 1 addition & 1 deletion schedule/disperse_siblings.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def disperse_siblings_when_review(reviewer, card: Card, ease):

config = Config()
config.load()
if not config.auto_disperse:
if not config.auto_disperse_when_review:
return

siblings = get_siblings_when_review(card)
Expand Down

0 comments on commit c606724

Please sign in to comment.