mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
CHORE: ninja fix && format
This commit is contained in:
parent
5da16c0f06
commit
e9b8f9487e
2 changed files with 18 additions and 22 deletions
|
|
@ -931,30 +931,30 @@ timerStopped = false;
|
|||
if aqt.mw.pm.get_answer_key(i)
|
||||
else ""
|
||||
)
|
||||
|
||||
|
||||
if self.mw.col.conf["hideColor"]:
|
||||
return """
|
||||
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||
%s%s</button></td>""" % (
|
||||
extra,
|
||||
key,
|
||||
i,
|
||||
i,
|
||||
label,
|
||||
due,
|
||||
)
|
||||
extra,
|
||||
key,
|
||||
i,
|
||||
i,
|
||||
label,
|
||||
due,
|
||||
)
|
||||
else:
|
||||
return """
|
||||
<td align=center><button %s class="answerButton %s" title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||
%s%s</button></td>""" % (
|
||||
extra,
|
||||
button_class,
|
||||
key,
|
||||
i,
|
||||
i,
|
||||
label,
|
||||
due,
|
||||
)
|
||||
extra,
|
||||
button_class,
|
||||
key,
|
||||
i,
|
||||
i,
|
||||
label,
|
||||
due,
|
||||
)
|
||||
|
||||
buf = "<center><table cellpadding=0 cellspacing=0><tr>"
|
||||
for ease, label in self._answerButtonList():
|
||||
|
|
|
|||
|
|
@ -97,8 +97,7 @@ impl Collection {
|
|||
show_remaining_due_counts: self.get_config_bool(BoolKey::ShowRemainingDueCountsInStudy),
|
||||
show_intervals_on_buttons: self
|
||||
.get_config_bool(BoolKey::ShowIntervalsAboveAnswerButtons),
|
||||
hide_colored_buttons: self
|
||||
.get_config_bool(BoolKey::HideColoredButtons),
|
||||
hide_colored_buttons: self.get_config_bool(BoolKey::HideColoredButtons),
|
||||
time_limit_secs: self.get_answer_time_limit_secs(),
|
||||
load_balancer_enabled: self.get_config_bool(BoolKey::LoadBalancerEnabled),
|
||||
fsrs_short_term_with_steps_enabled: self
|
||||
|
|
@ -121,10 +120,7 @@ impl Collection {
|
|||
BoolKey::ShowIntervalsAboveAnswerButtons,
|
||||
s.show_intervals_on_buttons,
|
||||
)?;
|
||||
self.set_config_bool_inner(
|
||||
BoolKey::HideColoredButtons,
|
||||
s.hide_colored_buttons,
|
||||
)?;
|
||||
self.set_config_bool_inner(BoolKey::HideColoredButtons, s.hide_colored_buttons)?;
|
||||
self.set_answer_time_limit_secs(s.time_limit_secs)?;
|
||||
self.set_config_bool_inner(BoolKey::LoadBalancerEnabled, s.load_balancer_enabled)?;
|
||||
self.set_config_bool_inner(
|
||||
|
|
|
|||
Loading…
Reference in a new issue