Skip to content

Commit

Permalink
fix: don't require Flags to be clone for settings on wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Nov 28, 2023
1 parent 7268931 commit fe7f152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions sctk/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,10 @@ where
E: Executor + 'static,
C: Compositor<Renderer = A::Renderer> + 'static,
<A::Renderer as Renderer>::Theme: StyleSheet,
A::Flags: Clone,
{
let mut debug = Debug::new();
debug.startup_started();

let flags = settings.flags.clone();
let exit_on_close_request = settings.exit_on_close_request;

let mut event_loop = SctkEventLoop::<A::Message>::new(&settings)
Expand All @@ -237,7 +235,7 @@ where
};

let (application, init_command) = {
let flags = flags;
let flags = settings.flags;

runtime.enter(|| A::new(flags))
};
Expand Down
2 changes: 1 addition & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use iced_sctk::settings::InitialSurface;
use std::borrow::Cow;

/// The settings of an application.
#[derive(Debug, Clone)]
#[derive(Debug)]
pub struct Settings<Flags> {
/// The identifier of the application.
///
Expand Down

0 comments on commit fe7f152

Please sign in to comment.