Fix mess in Tracker add-ons created in hrev48858
Revert the Tracker portions of hrev48858, they were not needed and were not right either... sorry guys OpenTargetFolder add-on modified slightly to use the passed in symlink(s) only, the parent directory ref is unused, it appears to be unneeded here also. With this and the reverted commits Zip-O-Matic and other add-ons should work again. Fixes #12105
This commit is contained in:
@@ -50,7 +50,7 @@ process_refs(entry_ref directoryRef, BMessage* message, void*)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
BEntry targetEntry(&directoryRef, true);
|
BEntry targetEntry(&ref, true);
|
||||||
if (targetEntry.InitCheck() != B_OK) {
|
if (targetEntry.InitCheck() != B_OK) {
|
||||||
BAlert* alert = new BAlert("Open Target Folder",
|
BAlert* alert = new BAlert("Open Target Folder",
|
||||||
"Cannot open target entry. Maybe this link is broken?",
|
"Cannot open target entry. Maybe this link is broken?",
|
||||||
|
|||||||
@@ -3223,13 +3223,8 @@ BContainerWindow::LoadAddOn(BMessage* message)
|
|||||||
|
|
||||||
refs->AddMessenger("TrackerViewToken", BMessenger(PoseView()));
|
refs->AddMessenger("TrackerViewToken", BMessenger(PoseView()));
|
||||||
|
|
||||||
const entry_ref* modelRef = TargetModel()->IsContainer()
|
|
||||||
&& selectionList->ItemAt(0) != NULL
|
|
||||||
? selectionList->ItemAt(0)->TargetModel()->EntryRef()
|
|
||||||
: TargetModel()->EntryRef();
|
|
||||||
|
|
||||||
LaunchInNewThread("Add-on", B_NORMAL_PRIORITY, &AddOnThread, refs,
|
LaunchInNewThread("Add-on", B_NORMAL_PRIORITY, &AddOnThread, refs,
|
||||||
addonRef, *modelRef);
|
addonRef, *TargetModel()->EntryRef());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user