update iris (window name)

This commit is contained in:
2025-12-04 14:53:21 -05:00
parent 02696b1f75
commit d8a96bc956
2 changed files with 9 additions and 2 deletions

View File

@@ -11,7 +11,10 @@ use openworm::{
net::{ClientMsg, ServerMsg, install_crypto_provider},
rsc::DataDir,
};
use winit::event::{ElementState, MouseButton, WindowEvent};
use winit::{
event::{ElementState, MouseButton, WindowEvent},
window::WindowAttributes,
};
mod debug;
mod net;
@@ -47,6 +50,10 @@ impl DefaultUiState for Client {
&mut self.ui
}
fn window_attrs() -> WindowAttributes {
WindowAttributes::default().with_title("OPENWORM")
}
fn new(mut ui: DefaultUi, proxy: Proxy<Self::Event>) -> Self {
let dir = DataDir::default();
let notif = WidgetPtr::default().add(&mut ui);