Tracker: small refactor to FindPaths.
No functional change intended. * Remove trailing / from Tracker, thanks Axel. * put addOnPaths.CountStrings() in a variable.
This commit is contained in:
parent
03a7aaf926
commit
784d5bea5c
@ -272,9 +272,10 @@ BDeskWindow::InitAddonsList(bool update)
|
||||
}
|
||||
|
||||
BStringList addOnPaths;
|
||||
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker/",
|
||||
BPathFinder::FindPaths(B_FIND_PATH_ADD_ONS_DIRECTORY, "Tracker",
|
||||
addOnPaths);
|
||||
for (int32 i = 0; i < addOnPaths.CountStrings(); i++) {
|
||||
int32 count = addOnPaths.CountStrings();
|
||||
for (int32 i = 0; i < count; i++) {
|
||||
LoadAddOnDir(BDirectory(addOnPaths.StringAt(i)), this,
|
||||
fAddonsList);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user