Small fixes

This commit is contained in:
crschnick 2023-02-06 15:31:41 +00:00
parent 4e1c38f27d
commit becda111b0
2 changed files with 10 additions and 1 deletions

View file

@ -2,6 +2,7 @@ package io.xpipe.app.comp.about;
import io.xpipe.app.comp.base.ButtonComp;
import io.xpipe.app.core.AppLogs;
import io.xpipe.app.editor.EditorState;
import io.xpipe.app.issue.UserReportComp;
import io.xpipe.core.util.XPipeInstallation;
import io.xpipe.extension.I18n;
@ -26,10 +27,16 @@ public class BrowseDirectoryComp extends SimpleComp {
UserReportComp.show(event.build());
}),
null)
.addComp(
"logFile",
new ButtonComp(I18n.observable("openCurrentLogFile"), () -> {
EditorState.get().openInEditor(AppLogs.get().getSessionLogsDirectory().resolve("xpipe.log").toString());
}),
null)
.addComp(
"logFiles",
new ButtonComp(I18n.observable("openLogsDirectory"), () -> {
OsHelper.browsePath(AppLogs.get().getLogsDirectory());
OsHelper.browsePath(AppLogs.get().getSessionLogsDirectory());
}),
null)
.addComp(

View file

@ -126,9 +126,11 @@ privacyPolicy=Privacy Policy
agree=Agree
disagree=Disagree
directories=Directories
logFile=Log File
logFiles=Log Files
logFilesAttachment=Log Files (Sensitive information removed)
issueReporter=Issue Reporter
openCurrentLogFile=Open current log file
openLogsDirectory=Open logs directory
installationFiles=Installation Files
openInstallationDirectory=Open installation directory