mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-09 14:49:32 +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 DOCS_FOLDER = "docs";
|
||||||
private static final String HELP_HTML_FILE = "index.html";
|
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
|
private static final Logger logger
|
||||||
= org.sleuthkit.autopsy.coreutils.Logger.getLogger(AboutWindowPanel.class.getName());
|
= org.sleuthkit.autopsy.coreutils.Logger.getLogger(AboutWindowPanel.class.getName());
|
||||||
@ -75,7 +76,7 @@ public final class OfflineHelpAction implements ActionListener {
|
|||||||
|
|
||||||
File systemHelpFile = getOfflineHelpFile();
|
File systemHelpFile = getOfflineHelpFile();
|
||||||
if (systemHelpFile == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,9 +103,11 @@ public final class OfflineHelpAction implements ActionListener {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private File getOfflineHelpFile() {
|
private File getOfflineHelpFile() {
|
||||||
return InstalledFileLocator.getDefault().getDefault().locate(
|
return InstalledFileLocator.getDefault().locate(
|
||||||
Paths.get(DOCS_FOLDER, HELP_HTML_FILE).toString(),
|
HELP_REL_PATH,
|
||||||
OfflineHelpAction.class.getPackage().getName(),
|
OfflineHelpAction.class.getPackage().getName(),
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user