diff --git a/src/gitlab_controller.rs b/src/gitlab_controller.rs index c879f31..decadf3 100644 --- a/src/gitlab_controller.rs +++ b/src/gitlab_controller.rs @@ -52,6 +52,7 @@ impl PipelineStatus { PipelineStatus::Pending => (Color::YELLOW, false), PipelineStatus::Running => (Color::AMBER, true), PipelineStatus::Success => (Color::GREEN, false), + PipelineStatus::Failed => (Color::RED, false), _ => (Color::OFF, false) }; } @@ -67,7 +68,7 @@ pub fn refresh_on_timer(client: Gitlab, project: Project) { .unwrap(); output.set_button(Button::GridButton { x: project.abs_x, y: project.abs_y }, c.get_color().0, - if c.get_color().1 { DoubleBufferingBehavior::None } + if c.get_color().1 { DoubleBufferingBehavior::Clear } else { DoubleBufferingBehavior::Copy }).unwrap(); sleep(REFRESH_DELAY); }