1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00

* usability enhancements

This commit is contained in:
Reinhard Pointner 2015-01-14 21:58:09 +00:00
parent 69bf967daa
commit 1913dfc13c

View File

@ -151,9 +151,8 @@ public class DropToUnlock extends JList<File> {
// if all folders have been unlocked auto-close dialog
if (model.stream().allMatch(f -> !isLockedFolder(f))) {
dialogCancelled.set(false);
invokeLater(750, () -> {
dialog.setVisible(false);
});
invokeLater(750, () -> dialog.setVisible(false)); // auto-close unlock dialog once all folders have been unlocked
invokeLater(1000, () -> requestForeground()); // bring application to foreground now that folders have been unlocked
} else {
model.stream().filter(f -> isLockedFolder(f)).findFirst().ifPresent(f -> {
invokeLater(250, () -> {