Use one standard Iris resource bundle
This commit is contained in:
1 parent
6dbc800739
commit
7e5a4c0071
16 files changed
+129
-100
No files matched your search
+2
-6
@@ -9,7 +9,7 @@ struct State {
|
||||
ui_state: DesktopUiState,
|
||||
}
|
||||
|
||||
type Rsc = DesktopRsc<State>;
|
||||
type Rsc = StdRsc<State>;
|
||||
|
||||
#[derive(Clone, Copy, WidgetView)]
|
||||
struct Test {
|
||||
@@ -36,11 +36,7 @@ impl Test {
|
||||
}
|
||||
|
||||
impl DesktopAppState for State {
|
||||
fn new(
|
||||
mut ui_state: DesktopUiState,
|
||||
rsc: &mut DesktopRsc<Self>,
|
||||
_: Proxy<Self::Event>,
|
||||
) -> Self {
|
||||
fn new(mut ui_state: DesktopUiState, rsc: &mut StdRsc<Self>, _: Proxy<Self::Event>) -> Self {
|
||||
let test = Test::new(rsc);
|
||||
|
||||
test.on(CursorSense::click(), move |_, rsc| {
|
||||
|
||||
Reference in new issue
Block a user