Maintain application metadata in beacon connection
This commit is contained in:
parent
dc69fdee46
commit
e82b10da77
6 changed files with 88 additions and 21 deletions
|
|
@ -174,7 +174,15 @@ impl<P: Program> Application<P> {
|
|||
Self: 'static,
|
||||
{
|
||||
#[cfg(all(feature = "debug", not(target_arch = "wasm32")))]
|
||||
let program = iced_devtools::attach(self.raw);
|
||||
let program = {
|
||||
iced_debug::init(iced_debug::Metadata {
|
||||
name: P::name(),
|
||||
theme: None,
|
||||
can_time_travel: cfg!(feature = "time-travel"),
|
||||
});
|
||||
|
||||
iced_devtools::attach(self.raw)
|
||||
};
|
||||
|
||||
#[cfg(any(not(feature = "debug"), target_arch = "wasm32"))]
|
||||
let program = self.raw;
|
||||
|
|
|
|||
|
|
@ -118,7 +118,15 @@ impl<P: Program> Daemon<P> {
|
|||
Self: 'static,
|
||||
{
|
||||
#[cfg(all(feature = "debug", not(target_arch = "wasm32")))]
|
||||
let program = iced_devtools::attach(self.raw);
|
||||
let program = {
|
||||
iced_debug::init(iced_debug::Metadata {
|
||||
name: P::name(),
|
||||
theme: None,
|
||||
can_time_travel: cfg!(feature = "time-travel"),
|
||||
});
|
||||
|
||||
iced_devtools::attach(self.raw)
|
||||
};
|
||||
|
||||
#[cfg(any(not(feature = "debug"), target_arch = "wasm32"))]
|
||||
let program = self.raw;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue