mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove handler for launcher response
This commit is contained in:
parent
ef9e82abf9
commit
f66d14f1a8
@ -139,19 +139,11 @@ pub fn new(
|
||||
open.on_activate({
|
||||
let cancellable = cancellable.clone();
|
||||
let file_launcher = file_launcher.clone();
|
||||
let status = status.clone();
|
||||
move |button| {
|
||||
button.set_sensitive(false); // lock
|
||||
file_launcher.launch(Window::NONE, Some(&cancellable), {
|
||||
let status = status.clone();
|
||||
let button = button.clone();
|
||||
move |result| {
|
||||
if let Err(e) = result {
|
||||
status.set_error(e.message())
|
||||
} else {
|
||||
button.set_sensitive(true); // unlock
|
||||
}
|
||||
}
|
||||
move |_| button.set_sensitive(true) // unlock
|
||||
})
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user