Skip to content

Commit 512b059

Browse files
committed
Update dependencies
1 parent 6fa9784 commit 512b059

File tree

2 files changed

+24
-29
lines changed

2 files changed

+24
-29
lines changed

Cargo.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dialog.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ impl<M: Send + 'static> Dialog<M> {
172172

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

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

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

198196
(
199197
Self {
@@ -206,9 +204,6 @@ impl<M: Send + 'static> Dialog<M> {
206204
cosmic_command
207205
.map(DialogMessage)
208206
.map(move |message| app::Message::App(mapper(message))),
209-
update_command
210-
.map(DialogMessage)
211-
.map(move |message| app::Message::App(mapper(message))),
212207
]),
213208
)
214209
}

0 commit comments

Comments
 (0)