mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
lock open button to prevent double click
This commit is contained in:
parent
75fc7f68b8
commit
03eb0fd87d
@ -37,6 +37,9 @@ impl File {
|
|||||||
let pem = pem.clone();
|
let pem = pem.clone();
|
||||||
let update = action.update.clone();
|
let update = action.update.clone();
|
||||||
move |_| {
|
move |_| {
|
||||||
|
// Lock open button (prevent double click)
|
||||||
|
gobject.set_sensitive(false);
|
||||||
|
|
||||||
// Init file filters related with PEM extension
|
// Init file filters related with PEM extension
|
||||||
let filters = ListStore::new::<FileFilter>();
|
let filters = ListStore::new::<FileFilter>();
|
||||||
|
|
||||||
@ -83,6 +86,7 @@ impl File {
|
|||||||
gobject.set_label(reason.message())
|
gobject.set_label(reason.message())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gobject.set_sensitive(true); // unlock
|
||||||
update.activate()
|
update.activate()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user