diff --git a/sctk/src/application.rs b/sctk/src/application.rs index 1ca86cd011..c1df3ae09b 100644 --- a/sctk/src/application.rs +++ b/sctk/src/application.rs @@ -1990,9 +1990,10 @@ where current_cache = user_interface.into_cache(); *cache = current_cache; - return ret.map(|o| match *o { - OperationWrapper::Message(o) => command::Action::Widget(o), - _ => unimplemented!() + return ret.and_then(|o| match *o { + OperationWrapper::Message(o) => Some(command::Action::Widget(o)), + OperationWrapper::Id(o) => Some(command::Action::Widget(o)), + _ => None }); } command::Action::PlatformSpecific(