mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
FIX: Missing key in db and related error popup (thanks @iamllama)
This commit is contained in:
parent
26b69008d8
commit
4debb0ddfc
4 changed files with 3 additions and 2 deletions
|
|
@ -57,6 +57,7 @@ message ConfigKey {
|
||||||
LOAD_BALANCER_ENABLED = 26;
|
LOAD_BALANCER_ENABLED = 26;
|
||||||
FSRS_SHORT_TERM_WITH_STEPS_ENABLED = 27;
|
FSRS_SHORT_TERM_WITH_STEPS_ENABLED = 27;
|
||||||
FSRS_LEGACY_EVALUATE = 28;
|
FSRS_LEGACY_EVALUATE = 28;
|
||||||
|
SHOW_COLORED_BUTTONS = 29;
|
||||||
}
|
}
|
||||||
enum String {
|
enum String {
|
||||||
SET_DUE_BROWSER = 0;
|
SET_DUE_BROWSER = 0;
|
||||||
|
|
|
||||||
|
|
@ -932,7 +932,7 @@ timerStopped = false;
|
||||||
else ""
|
else ""
|
||||||
)
|
)
|
||||||
|
|
||||||
if not self.mw.col.conf["showColor"]:
|
if not self.mw.col.get_config_bool(Config.Bool.SHOW_COLORED_BUTTONS):
|
||||||
return """
|
return """
|
||||||
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||||
%s%s</button></td>""" % (
|
%s%s</button></td>""" % (
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ impl From<BoolKeyProto> for BoolKey {
|
||||||
BoolKeyProto::LoadBalancerEnabled => BoolKey::LoadBalancerEnabled,
|
BoolKeyProto::LoadBalancerEnabled => BoolKey::LoadBalancerEnabled,
|
||||||
BoolKeyProto::FsrsShortTermWithStepsEnabled => BoolKey::FsrsShortTermWithStepsEnabled,
|
BoolKeyProto::FsrsShortTermWithStepsEnabled => BoolKey::FsrsShortTermWithStepsEnabled,
|
||||||
BoolKeyProto::FsrsLegacyEvaluate => BoolKey::FsrsLegacyEvaluate,
|
BoolKeyProto::FsrsLegacyEvaluate => BoolKey::FsrsLegacyEvaluate,
|
||||||
|
BoolKeyProto::ShowColoredButtons => BoolKey::ShowColoredButtons,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@ pub enum BoolKey {
|
||||||
ShowRemainingDueCountsInStudy,
|
ShowRemainingDueCountsInStudy,
|
||||||
#[strum(to_string = "addToCur")]
|
#[strum(to_string = "addToCur")]
|
||||||
AddingDefaultsToCurrentDeck,
|
AddingDefaultsToCurrentDeck,
|
||||||
#[strum(to_string = "showColor")]
|
|
||||||
ShowColoredButtons,
|
ShowColoredButtons,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue