Update dependencies

This commit is contained in:
Jeremy Soller 2024-10-21 15:52:10 -06:00
parent 6fa9784109
commit 512b0593d4
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 24 additions and 29 deletions

View file

@ -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
@ -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 {
@ -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))),
]),
)
}