Default DesktopApp to the standard UI state

This commit is contained in:
iris committed 2026-09-11 12:31:52 -04:00
1 parent 18685da28b
commit c3122301b4
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -6,5 +6,5 @@ mod app;
fn main() {
let attributes = WindowAttributes::default().with_inner_size(LogicalSize::new(420.0, 900.0));
DesktopApp::<DesktopUiState>::run_with_attributes(attributes, app::build);
DesktopApp::run_with_attributes(attributes, app::build);
}
+1 -1
View File
@@ -4,5 +4,5 @@ use iris::prelude::*;
mod app;
fn main() {
DesktopApp::<DesktopUiState>::run_with(app::build);
DesktopApp::run_with(app::build);
}
+1 -1
View File
@@ -4,5 +4,5 @@ use iris::prelude::*;
mod app;
fn main() {
DesktopApp::<DesktopUiState>::run_with(app::build);
DesktopApp::run_with(app::build);
}
+1 -1
View File
@@ -4,5 +4,5 @@ use iris::prelude::*;
mod app;
fn main() {
DesktopApp::<DesktopUiState>::run_with(app::build);
DesktopApp::run_with(app::build);
}
+1 -1
View File
@@ -49,7 +49,7 @@ fn create(
Desktop has the corresponding initializer form:
```rust
DesktopApp::<DesktopUiState>::run_with(build);
DesktopApp::run_with(build);
```
Background work updates either host through the same task context. An update
+1 -1
View File
@@ -110,7 +110,7 @@ impl DesktopAppState for DesktopUiState {
}
}
pub struct DesktopApp<State: DesktopAppState> {
pub struct DesktopApp<State: DesktopAppState = DesktopUiState> {
rsc: StdRsc<State>,
state: State,
task_recv: TaskMsgReceiver<StdRsc<State>>,