Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
In the release 2 branch we don't have GetGenioDirectory, so use a different approach
  • Loading branch information
jackburton79 committed Jan 5, 2024
1 parent f21b079 commit 876f0f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ui/GenioWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3319,9 +3319,11 @@ GenioWindow::_ShowDocumentation()

// Also add documentation path in the Genio directory
// for when it's run directly from the repository
BPath localDocsPath;
if (GetGenioDirectory(localDocsPath)) {
if (localDocsPath.GetParent(&localDocsPath) == B_OK) {
app_info info;
if (be_app->GetAppInfo(&info) == B_OK) {
BPath localDocsPath(&info.ref);
if (localDocsPath.GetParent(&localDocsPath) == B_OK
&& localDocsPath.GetParent(&localDocsPath) == B_OK) {
localDocsPath.Append("documentation");
paths.Add(localDocsPath.Path());
}
Expand Down

0 comments on commit 876f0f0

Please sign in to comment.