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