Fix MAS permission issues
This commit is contained in:
parent
5ffc2a804c
commit
62cc40136a
|
@ -53,11 +53,6 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy<TreeNo
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleInBackground(List<File> files, TransferAction action) {
|
protected void handleInBackground(List<File> files, TransferAction action) {
|
||||||
// make sure we have access to the parent folder structure, not just the dropped file
|
|
||||||
if (isMacSandbox()) {
|
|
||||||
MacAppUtilities.askUnlockFolders(getWindow(tree), files);
|
|
||||||
}
|
|
||||||
|
|
||||||
super.handleInBackground(files, action);
|
super.handleInBackground(files, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,6 +63,11 @@ class FileTreeTransferablePolicy extends BackgroundFileTransferablePolicy<TreeNo
|
||||||
files = Arrays.asList(files.get(0).getParentFile());
|
files = Arrays.asList(files.get(0).getParentFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure we have access to the parent folder structure, not just the dropped file
|
||||||
|
if (isMacSandbox()) {
|
||||||
|
MacAppUtilities.askUnlockFolders(getWindow(tree), files);
|
||||||
|
}
|
||||||
|
|
||||||
// use fast file to minimize system calls like length(), isDirectory(), isFile(), ...
|
// use fast file to minimize system calls like length(), isDirectory(), isFile(), ...
|
||||||
FastFile root = FastFile.create(filter(files, FOLDERS)).get(0);
|
FastFile root = FastFile.create(filter(files, FOLDERS)).get(0);
|
||||||
|
|
||||||
|
|
|
@ -52,11 +52,6 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<C
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleInBackground(List<File> files, TransferAction action) {
|
protected void handleInBackground(List<File> files, TransferAction action) {
|
||||||
// make sure we have access to the parent folder structure, not just the dropped file
|
|
||||||
if (isMacSandbox()) {
|
|
||||||
MacAppUtilities.askUnlockFolders(getWindow(table), files);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (files.size() == 1 && getHashType(files.get(0)) != null) {
|
if (files.size() == 1 && getHashType(files.get(0)) != null) {
|
||||||
model.setHashType(getHashType(files.get(0)));
|
model.setHashType(getHashType(files.get(0)));
|
||||||
}
|
}
|
||||||
|
@ -78,6 +73,11 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<C
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void load(List<File> files, TransferAction action) throws IOException {
|
protected void load(List<File> files, TransferAction action) throws IOException {
|
||||||
|
// make sure we have access to the parent folder structure, not just the dropped file
|
||||||
|
if (isMacSandbox()) {
|
||||||
|
MacAppUtilities.askUnlockFolders(getWindow(table), files);
|
||||||
|
}
|
||||||
|
|
||||||
// initialize drop parameters
|
// initialize drop parameters
|
||||||
executor.set(computationService.newExecutor());
|
executor.set(computationService.newExecutor());
|
||||||
verificationTracker.set(new VerificationTracker(5));
|
verificationTracker.set(new VerificationTracker(5));
|
||||||
|
|
Loading…
Reference in New Issue