diff --git a/src/gui/app.rs b/src/gui/app.rs index f6597d3..dff2ce1 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -152,7 +152,7 @@ impl App { let label = ui.horizontal(|ui| { let label = ui.label("Game's network access"); 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( "This turns yellow if GTA Tools\ncannot find your game.", ); diff --git a/src/gui/colours.rs b/src/gui/colours.rs index b3ed8ca..56898c6 100644 --- a/src/gui/colours.rs +++ b/src/gui/colours.rs @@ -14,9 +14,3 @@ impl From for egui::Color32 { } } } - -impl BlockedStatus { - pub fn to_color32(self) -> egui::Color32 { - self.into() - } -}