Screenshots - fixed broken screenshot generators

This commit is contained in:
dragonmacher 2019-06-06 15:35:13 -04:00
parent 60be8e151b
commit 23a05a4177

View File

@ -70,6 +70,10 @@ public class ToolUtils {
Set<String> toolNames = ResourceManager.getResourceNames("defaultTools", ".tool");
for (String toolName : toolNames) {
if (skipTool(toolName)) {
continue;
}
ToolTemplate tool = readToolTemplate(toolName);
if (tool != null) {
set.add(tool);
@ -290,10 +294,6 @@ public class ToolUtils {
public static ToolTemplate readToolTemplate(String resourceFileName) {
if (skipTool(resourceFileName)) {
return null;
}
try (InputStream is = ResourceManager.getResourceAsStream(resourceFileName)) {
if (is == null) {
return null;
@ -346,7 +346,8 @@ public class ToolUtils {
}
/**
* Returns the user's personal tool chest directory path.
* Returns the user's personal tool chest directory path
* @return the path
*/
public static String getApplicationToolDirPath() {
String userSettingsPath = Application.getUserSettingsDirectory().getAbsolutePath();