mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10: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 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…
x
Reference in New Issue
Block a user