~grtcdr/citron

7ae08828a49a0fbe8b7da7f029cd31801fe3aa1d — grtcdr 1 year, 5 months ago e7914ca
Update disconnected network icon filename
2 files changed, 3 insertions(+), 3 deletions(-)

M src/fmt/network.rs
M src/read.rs
M src/fmt/network.rs => src/fmt/network.rs +2 -2
@@ 46,7 46,7 @@ impl Iconize for NetworkFormatter {
    fn set_icon(&self) -> &str {
        match self.logical_address {
            Some(_) => "network-wireless-symbolic",
            _ => "network-wireless-disconnected-symbolic",
            _ => "network-wireless-offline-symbolic",
        }
    }
}


@@ 121,7 121,7 @@ mod tests {
    #[test]
    fn pick_icon() {
        let mut fmt = NetworkFormatter::new();
        assert_eq!(fmt.set_icon(), "network-wireless-disconnected-symbolic");
        assert_eq!(fmt.set_icon(), "network-wireless-offline-symbolic");
        fmt.set_logical_address("192.168.1.1".to_string());
        assert_eq!(fmt.set_icon(), "network-wireless-symbolic");
    }

M src/read.rs => src/read.rs +1 -1
@@ 154,6 154,6 @@ pub fn date(config: &Config, icon: (&mut String, bool)) -> Result<String, Readou
    }

    Err(ReadoutError::Other(
        "Oops, we couldn't retrieve your timezone.".to_string(),
        "Could not determine your timezone.".to_string(),
    ))
}