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 18, 2023
1 parent 9f33177 commit afff0c1
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 @@ -222,12 +222,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 @@ -241,7 +239,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 @@ -7,7 +7,7 @@ use crate::Font;
use iced_sctk::settings::InitialSurface;

/// 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 afff0c1

Please sign in to comment.