We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 043f174 commit ad316fbCopy full SHA for ad316fb
1 file changed
src/main/utils.ts
@@ -29,9 +29,9 @@ export function takeScreenshot(mb: Menubar) {
29
}
30
31
export function openLogsDirectory() {
32
- const filePath = log.transports.file?.getFile()?.path;
+ const logFilePath = log.transports.file?.getFile()?.path;
33
34
- if (!filePath) {
+ if (!logFilePath) {
35
logError(
36
'openLogsDirectory',
37
'Could not find log directory!',
@@ -40,7 +40,6 @@ export function openLogsDirectory() {
40
return;
41
42
43
- const logDirectory = path.dirname(filePath);
44
-
+ const logDirectory = path.dirname(logFilePath);
45
shell.openPath(logDirectory);
46
0 commit comments