mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
lock open button to prevent double click
This commit is contained in:
parent
75fc7f68b8
commit
03eb0fd87d
1 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ impl File {
|
|||
let pem = pem.clone();
|
||||
let update = action.update.clone();
|
||||
move |_| {
|
||||
// Lock open button (prevent double click)
|
||||
gobject.set_sensitive(false);
|
||||
|
||||
// Init file filters related with PEM extension
|
||||
let filters = ListStore::new::<FileFilter>();
|
||||
|
||||
|
|
@ -83,6 +86,7 @@ impl File {
|
|||
gobject.set_label(reason.message())
|
||||
}
|
||||
}
|
||||
gobject.set_sensitive(true); // unlock
|
||||
update.activate()
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue