Make display uuid optional if the display is disconnected

This commit is contained in:
Kay Simmons 2023-02-01 14:59:43 -08:00
parent fd2a9b3df9
commit 62d32db66c
4 changed files with 28 additions and 22 deletions

View file

@ -238,8 +238,8 @@ impl super::Screen for Screen {
RectF::new(Vector2F::zero(), Vector2F::new(1920., 1080.))
}
fn display_uuid(&self) -> uuid::Uuid {
uuid::Uuid::new_v4()
fn display_uuid(&self) -> Option<uuid::Uuid> {
Some(uuid::Uuid::new_v4())
}
}