cleanup
This commit is contained in:
parent
546c224c77
commit
fc8a51389f
1 changed files with 1 additions and 2 deletions
|
|
@ -98,7 +98,6 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
let window = Window::new(app);
|
let window = Window::new(app);
|
||||||
let wclone = window.clone();
|
|
||||||
window.show();
|
window.show();
|
||||||
|
|
||||||
glib::MainContext::default().spawn_local(async move {
|
glib::MainContext::default().spawn_local(async move {
|
||||||
|
|
@ -131,7 +130,7 @@ fn main() {
|
||||||
DesktopAppInfo::new(&path.file_name().expect("desktop entry path needs to be a valid filename").to_string_lossy())
|
DesktopAppInfo::new(&path.file_name().expect("desktop entry path needs to be a valid filename").to_string_lossy())
|
||||||
.expect("failed to create a Desktop App info for launching the application.");
|
.expect("failed to create a Desktop App info for launching the application.");
|
||||||
app_info
|
app_info
|
||||||
.launch(&[], Some(&wclone.display().app_launch_context().clone())).expect("failed to launch the application.");
|
.launch(&[], Some(&window.display().app_launch_context())).expect("failed to launch the application.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue