* usability enhancements

This commit is contained in:
Reinhard Pointner 2015-01-14 21:58:09 +00:00
parent 69bf967daa
commit 1913dfc13c
1 changed files with 2 additions and 3 deletions

View File

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