CHORE: ninja fix && format

This commit is contained in:
GithubAnon0000 2025-09-29 22:31:06 +02:00
parent 5da16c0f06
commit e9b8f9487e
2 changed files with 18 additions and 22 deletions

View file

@ -931,30 +931,30 @@ timerStopped = false;
if aqt.mw.pm.get_answer_key(i) if aqt.mw.pm.get_answer_key(i)
else "" else ""
) )
if self.mw.col.conf["hideColor"]: if self.mw.col.conf["hideColor"]:
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():

View file

@ -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(