Update dependencies
This commit is contained in:
parent
6fa9784109
commit
512b0593d4
2 changed files with 24 additions and 29 deletions
|
|
@ -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))),
|
||||
]),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue