diff --git a/src/ui/fixed_window.rs b/src/ui/fixed_window.rs index e4160747..ed82c10f 100644 --- a/src/ui/fixed_window.rs +++ b/src/ui/fixed_window.rs @@ -1,5 +1,6 @@ use egui::{Rect, Response, RichText, Sense, Window}; +#[derive(Default)] pub struct FixedWindow { title: Option, } @@ -13,7 +14,7 @@ pub enum FixedWindowResponse { impl FixedWindow { #[allow(dead_code)] pub fn new() -> Self { - Self { title: None } + FixedWindow::default() } pub fn maybe_with_title(maybe_title: Option) -> Self {