Opponent prep: the newest game by its earliest day; dates after today are typos
One game of «2026.??.??» no longer moves a period past the exactly dated games; a date after today counts as none (in periods and in «Last N»). Every colour change goes through set_color; a name with two ids in the database takes both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
758856f458
commit
e2f4935ecc
3 changed files with 41 additions and 20 deletions
|
|
@ -4497,7 +4497,11 @@ impl PrepScreen {
|
|||
.link(trf("Show {other}", &[("other", &other_name)]))
|
||||
.clicked()
|
||||
{
|
||||
self.color = ColorChoice::from_side(if other { Side::White } else { Side::Black });
|
||||
self.set_color(ColorChoice::from_side(if other {
|
||||
Side::White
|
||||
} else {
|
||||
Side::Black
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -6061,13 +6065,13 @@ impl PrepScreen {
|
|||
self.tab = Tab::Errors;
|
||||
}
|
||||
if ctx.input_mut(|i| i.consume_shortcut(&alt(Key::Num1))) {
|
||||
self.color = ColorChoice::White;
|
||||
self.set_color(ColorChoice::White);
|
||||
}
|
||||
if ctx.input_mut(|i| i.consume_shortcut(&alt(Key::Num2))) {
|
||||
self.color = ColorChoice::Black;
|
||||
self.set_color(ColorChoice::Black);
|
||||
}
|
||||
if ctx.input_mut(|i| i.consume_shortcut(&alt(Key::Num3))) {
|
||||
self.color = ColorChoice::Both;
|
||||
self.set_color(ColorChoice::Both);
|
||||
}
|
||||
if ctx.input_mut(|i| i.consume_shortcut(&ctrl(Key::W))) {
|
||||
actions.push(PrepAction::Back);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue