mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 05:37:04 +00:00
dialogs: drop the owed take_child_erased (dialogs-w1 wrote DialogHost's child opening)
This commit is contained in:
@@ -217,7 +217,6 @@ trait AnyStackDialog: Send {
|
||||
fn key(&self) -> Option<String>;
|
||||
fn instance(&self) -> Option<DialogId>;
|
||||
fn confirm_erased(&mut self, ctx: &Context) -> Option<Box<dyn Any + Send>>;
|
||||
fn take_child_erased(&mut self) -> Option<ChildDialog>;
|
||||
fn held_state(&self) -> Option<HeldOk>;
|
||||
fn canvas(&self) -> Option<egui::Id>;
|
||||
fn json_fields(&self) -> Option<Value>;
|
||||
@@ -259,10 +258,6 @@ impl<D: StackDialog> AnyStackDialog for D {
|
||||
self.confirm(ctx).map(|result| Box::new(DialogResult::Ok(result)) as Box<dyn Any + Send>)
|
||||
}
|
||||
|
||||
fn take_child_erased(&mut self) -> Option<ChildDialog> {
|
||||
StackDialog::take_child(self)
|
||||
}
|
||||
|
||||
fn held_state(&self) -> Option<HeldOk> {
|
||||
StackDialog::held_state(self)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user