Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Oct 21, 2024
1 parent 6fa9784 commit 512b059
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 29 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions src/dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ impl<M: Send + 'static> Dialog<M> {

let (window_id, window_command) = window::open(settings.clone());

let core = Core::default();
let mut core = Core::default();
core.set_main_window_id(window_id);
let flags = Flags {
kind,
path_opt: path_opt
Expand All @@ -191,9 +192,6 @@ impl<M: Send + 'static> Dialog<M> {

// settings here is unused
let (mut cosmic, cosmic_command) = Cosmic::<App>::init((core, flags, settings));
let update_command = cosmic.update(app::Message::Cosmic(
app::cosmic::Message::MainWindowCreated(window_id),
));

(
Self {
Expand All @@ -206,9 +204,6 @@ impl<M: Send + 'static> Dialog<M> {
cosmic_command
.map(DialogMessage)
.map(move |message| app::Message::App(mapper(message))),
update_command
.map(DialogMessage)
.map(move |message| app::Message::App(mapper(message))),
]),
)
}
Expand Down

0 comments on commit 512b059

Please sign in to comment.