Remove OS indicator on non-windows operating systems due to it being redundant for most users, as users know what operating system they are running otherwise.

This commit is contained in:
rosedaler 2023-01-04 11:12:09 -05:00
parent de033260e6
commit 53d6ee0e33

View file

@ -1436,12 +1436,12 @@ impl eframe::App for App {
#[cfg(target_os = "windows")]
if self.admin {
ui.add_sized([width, height], Label::new(self.os));
ui.separator();
} else {
ui.add_sized([width, height], Label::new(RichText::new(self.os).color(RED))).on_hover_text(WINDOWS_NOT_ADMIN);
ui.separator();
}
#[cfg(target_family = "unix")]
ui.add_sized([width, height], Label::new(self.os));
ui.separator();
// [P2Pool/XMRig] Status
use ProcessState::*;
match p2pool_state {