From 8630287676baad0f5b50ecf41dcde652128f6d00 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Tue, 10 Mar 2020 01:38:37 -0400 Subject: [PATCH] Default to showing time at first for autohide. --- src/app.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index 7f98894e..1f961570 100644 --- a/src/app.rs +++ b/src/app.rs @@ -246,7 +246,7 @@ impl Default for NetState { zoom_level: 100.0, display_time: constants::DEFAULT_TIME_MILLISECONDS, force_update: false, - display_time_instant: None, + display_time_instant: Some(Instant::now()), } } } @@ -269,7 +269,7 @@ impl Default for CpuState { core_show_vec: Vec::new(), display_time: constants::DEFAULT_TIME_MILLISECONDS, force_update: false, - display_time_instant: None, + display_time_instant: Some(Instant::now()), } } } @@ -294,7 +294,7 @@ impl Default for MemState { zoom_level: 100.0, display_time: constants::DEFAULT_TIME_MILLISECONDS, force_update: false, - display_time_instant: None, + display_time_instant: Some(Instant::now()), } } }