mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Expose method to check for v2 as well
This commit is contained in:
parent
96aab939aa
commit
3ebc6ac68a
1 changed files with 4 additions and 0 deletions
|
@ -214,6 +214,10 @@ impl Collection {
|
||||||
.unwrap_or(SchedulerVersion::V1)
|
.unwrap_or(SchedulerVersion::V1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn v2_enabled(&self) -> bool {
|
||||||
|
self.scheduler_version() == SchedulerVersion::V2
|
||||||
|
}
|
||||||
|
|
||||||
pub fn v3_enabled(&self) -> bool {
|
pub fn v3_enabled(&self) -> bool {
|
||||||
self.scheduler_version() == SchedulerVersion::V2 && self.get_config_bool(BoolKey::Sched2021)
|
self.scheduler_version() == SchedulerVersion::V2 && self.get_config_bool(BoolKey::Sched2021)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue