* usability enhancements
This commit is contained in:
parent
69bf967daa
commit
1913dfc13c
|
@ -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, () -> {
|
||||||
|
|
Loading…
Reference in New Issue