remove redundant method to_color32
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ impl App {
|
|||||||
let label = ui.horizontal(|ui| {
|
let label = ui.horizontal(|ui| {
|
||||||
let label = ui.label("Game's network access");
|
let label = ui.label("Game's network access");
|
||||||
ui.add_space(1.0);
|
ui.add_space(1.0);
|
||||||
ui.create_indicator_dot(self.game_networking.blocked_status.to_color32())
|
ui.create_indicator_dot(self.game_networking.blocked_status)
|
||||||
.on_hover_text(
|
.on_hover_text(
|
||||||
"This turns yellow if GTA Tools\ncannot find your game.",
|
"This turns yellow if GTA Tools\ncannot find your game.",
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -14,9 +14,3 @@ impl From<BlockedStatus> for egui::Color32 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BlockedStatus {
|
|
||||||
pub fn to_color32(self) -> egui::Color32 {
|
|
||||||
self.into()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user