Skip to content

Commit

Permalink
Fix training dashboard metrics switch (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard authored and syl20bnr committed Feb 1, 2024
1 parent 7a8589e commit 23d653a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions burn-train/src/renderer/tui/metric_numeric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ impl NumericMetricsState {
if let Event::Key(key) = event {
match key.kind {
KeyEventKind::Release | KeyEventKind::Repeat => (),
#[cfg(target_os = "windows")] // Fix the double toggle on Windows.
KeyEventKind::Press => return,
#[cfg(not(target_os = "windows"))]
KeyEventKind::Press => (),
}
match key.code {
KeyCode::Right => self.next_metric(),
Expand Down

0 comments on commit 23d653a

Please sign in to comment.