tie icon match to os_name
This commit is contained in:
parent
07b95707e5
commit
f6225b1027
@ -129,7 +129,7 @@ impl Information {
|
|||||||
Self {
|
Self {
|
||||||
username: whoami::username(),
|
username: whoami::username(),
|
||||||
hostname: whoami::hostname(),
|
hostname: whoami::hostname(),
|
||||||
os_name,
|
os_name: os_name.clone(),
|
||||||
os_ver: sys.os_version(),
|
os_ver: sys.os_version(),
|
||||||
kernel_ver: sys.kernel_version(),
|
kernel_ver: sys.kernel_version(),
|
||||||
uptime: compound_duration::format_dhms(sys.uptime()),
|
uptime: compound_duration::format_dhms(sys.uptime()),
|
||||||
@ -212,8 +212,7 @@ impl Information {
|
|||||||
Byte::from(sys.total_memory()).get_appropriate_unit(true)
|
Byte::from(sys.total_memory()).get_appropriate_unit(true)
|
||||||
),
|
),
|
||||||
|
|
||||||
icon: match sys
|
icon: match os_name
|
||||||
.name()
|
|
||||||
.unwrap_or(String::from("Unknown System"))
|
.unwrap_or(String::from("Unknown System"))
|
||||||
.as_ref()
|
.as_ref()
|
||||||
// Getting the icon for the distro.
|
// Getting the icon for the distro.
|
||||||
|
Loading…
Reference in New Issue
Block a user