mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
fixes
This commit is contained in:
parent
854a2bae8a
commit
03e3ec49c4
@ -56,6 +56,7 @@ public final class OfflineHelpAction implements ActionListener {
|
||||
|
||||
private static final String DOCS_FOLDER = "docs";
|
||||
private static final String HELP_HTML_FILE = "index.html";
|
||||
private static final String HELP_REL_PATH = Paths.get("..", DOCS_FOLDER, HELP_HTML_FILE).toString();
|
||||
|
||||
private static final Logger logger
|
||||
= org.sleuthkit.autopsy.coreutils.Logger.getLogger(AboutWindowPanel.class.getName());
|
||||
@ -75,7 +76,7 @@ public final class OfflineHelpAction implements ActionListener {
|
||||
|
||||
File systemHelpFile = getOfflineHelpFile();
|
||||
if (systemHelpFile == null) {
|
||||
logger.log(Level.SEVERE, "Unable to load Offline Documentation file");
|
||||
logger.log(Level.SEVERE, "Unable to load Offline Documentation file at relative path: " + HELP_REL_PATH);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -102,9 +103,11 @@ public final class OfflineHelpAction implements ActionListener {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private File getOfflineHelpFile() {
|
||||
return InstalledFileLocator.getDefault().getDefault().locate(
|
||||
Paths.get(DOCS_FOLDER, HELP_HTML_FILE).toString(),
|
||||
return InstalledFileLocator.getDefault().locate(
|
||||
HELP_REL_PATH,
|
||||
OfflineHelpAction.class.getPackage().getName(),
|
||||
false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user