Fix MAS permission issues
This commit is contained in:
parent
b428b13835
commit
5ffc2a804c
|
@ -27,11 +27,13 @@ import net.filebot.util.ExceptionUtilities;
|
|||
|
||||
class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<ChecksumCell> {
|
||||
|
||||
private final ChecksumTable table;
|
||||
private final ChecksumTableModel model;
|
||||
private final ChecksumComputationService computationService;
|
||||
|
||||
public ChecksumTableTransferablePolicy(ChecksumTableModel model, ChecksumComputationService checksumComputationService) {
|
||||
this.model = model;
|
||||
public ChecksumTableTransferablePolicy(ChecksumTable table, ChecksumComputationService checksumComputationService) {
|
||||
this.table = table;
|
||||
this.model = table.getModel();
|
||||
this.computationService = checksumComputationService;
|
||||
}
|
||||
|
||||
|
@ -52,7 +54,7 @@ class ChecksumTableTransferablePolicy extends BackgroundFileTransferablePolicy<C
|
|||
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(files), files);
|
||||
MacAppUtilities.askUnlockFolders(getWindow(table), files);
|
||||
}
|
||||
|
||||
if (files.size() == 1 && getHashType(files.get(0)) != null) {
|
||||
|
|
|
@ -44,7 +44,7 @@ public class SfvPanel extends JComponent {
|
|||
|
||||
private final ChecksumTable table = new ChecksumTable();
|
||||
|
||||
private final ChecksumTableTransferablePolicy transferablePolicy = new ChecksumTableTransferablePolicy(table.getModel(), computationService);
|
||||
private final ChecksumTableTransferablePolicy transferablePolicy = new ChecksumTableTransferablePolicy(table, computationService);
|
||||
private final ChecksumTableExportHandler exportHandler = new ChecksumTableExportHandler(table.getModel());
|
||||
|
||||
public SfvPanel() {
|
||||
|
|
Loading…
Reference in New Issue