Tighten TimeSpinner spacing and fix build warnings
Reduce gap between numbers and h/m unit labels in the workday schedule spinners. Remove unused parse_hour function and fix Svelte state_referenced_locally warning in BreakScreen.
This commit is contained in:
@@ -462,14 +462,6 @@ pub enum IdleCheckResult {
|
||||
NaturalBreakDetected(u64), // duration in seconds
|
||||
}
|
||||
|
||||
fn parse_hour(time_str: &str) -> u32 {
|
||||
time_str
|
||||
.split(':')
|
||||
.next()
|
||||
.and_then(|h| h.parse().ok())
|
||||
.unwrap_or(9)
|
||||
}
|
||||
|
||||
/// Returns the number of seconds since last user input (mouse/keyboard).
|
||||
#[cfg(windows)]
|
||||
pub fn get_idle_seconds() -> u64 {
|
||||
|
||||
Reference in New Issue
Block a user