Prevent remament light from double bufferization to appear on flashing light
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
d11941d5f6
commit
2590f6fd4e
@ -52,6 +52,7 @@ impl PipelineStatus {
|
|||||||
PipelineStatus::Pending => (Color::YELLOW, false),
|
PipelineStatus::Pending => (Color::YELLOW, false),
|
||||||
PipelineStatus::Running => (Color::AMBER, true),
|
PipelineStatus::Running => (Color::AMBER, true),
|
||||||
PipelineStatus::Success => (Color::GREEN, false),
|
PipelineStatus::Success => (Color::GREEN, false),
|
||||||
|
PipelineStatus::Failed => (Color::RED, false),
|
||||||
_ => (Color::OFF, false)
|
_ => (Color::OFF, false)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -67,7 +68,7 @@ pub fn refresh_on_timer(client: Gitlab, project: Project) {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
output.set_button(Button::GridButton { x: project.abs_x, y: project.abs_y },
|
output.set_button(Button::GridButton { x: project.abs_x, y: project.abs_y },
|
||||||
c.get_color().0,
|
c.get_color().0,
|
||||||
if c.get_color().1 { DoubleBufferingBehavior::None }
|
if c.get_color().1 { DoubleBufferingBehavior::Clear }
|
||||||
else { DoubleBufferingBehavior::Copy }).unwrap();
|
else { DoubleBufferingBehavior::Copy }).unwrap();
|
||||||
sleep(REFRESH_DELAY);
|
sleep(REFRESH_DELAY);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user