Skip to content

Commit

Permalink
Remove "Auto apply Easy Days"
Browse files Browse the repository at this point in the history
This feature is no longer required because Easy Days is now natively integrated in Anki.
  • Loading branch information
user1823 committed Dec 4, 2024
1 parent b13eb9e commit 7cbb22c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 31 deletions.
11 changes: 0 additions & 11 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,8 @@ def search_stats_extended(did=None):
)


def set_auto_easy_days(checked, _):
config.auto_easy_days = checked


menu_for_auto_easy_days = checkable(
title="Auto apply easy days on closing collection",
on_click=set_auto_easy_days,
)

menu_for_easy_days.addAction(menu_apply_easy_days_for_specific_date)
menu_for_easy_days.addAction(menu_apply_easy_days)
menu_for_easy_days.addAction(menu_for_auto_easy_days)


def adjust_menu():
Expand All @@ -300,7 +290,6 @@ def adjust_menu():
menu_auto_disperse_after_reschedule.setChecked(
config.auto_disperse_after_reschedule
)
menu_for_auto_easy_days.setChecked(config.auto_easy_days)


@state_did_change.append
Expand Down
1 change: 0 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"debug_notify": false,
"fsrs_stats": true,
"display_memory_state": false,
"auto_easy_days": false,
"has_rated": false,
"has_sponsored": false,
"show_steps_stats": false
Expand Down
10 changes: 0 additions & 10 deletions configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
DEBUG_NOTIFY = "debug_notify"
FSRS_STATS = "fsrs_stats"
DISPLAY_MEMORY_STATE = "display_memory_state"
AUTO_EASY_DAYS = "auto_easy_days"
HAS_RATED = "has_rated"
HAS_SPONSORED = "has_sponsored"
SHOW_STEPS_STATS = "show_steps_stats"
Expand Down Expand Up @@ -137,15 +136,6 @@ def display_memory_state(self, value):
self.data[DISPLAY_MEMORY_STATE] = value
self.save()

@property
def auto_easy_days(self):
return self.data[AUTO_EASY_DAYS]

@auto_easy_days.setter
def auto_easy_days(self, value):
self.data[AUTO_EASY_DAYS] = value
self.save()

@property
def has_rated(self):
return self.data[HAS_RATED]
Expand Down
9 changes: 0 additions & 9 deletions schedule/easy_days.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from ..configuration import Config
from .reschedule import reschedule
from anki.utils import ids2str
from aqt.gui_hooks import profile_will_close


def easy_days(did):
Expand Down Expand Up @@ -49,14 +48,6 @@ def easy_days(did):
return fut.result()


@profile_will_close.append
def auto_easy_days():
config = Config()
config.load()
if config.auto_easy_days:
easy_days(None)


# Modified from https://github.com/sam1penny/countdown-to-events/blob/main/src/__init__.py#L86-L169
class EasySpecificDateManagerWidget(QWidget):
def __init__(self, config: Config):
Expand Down

0 comments on commit 7cbb22c

Please sign in to comment.