Manav Rathi 1 년 전
부모
커밋
28c1c45325
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      desktop/src/main/util.ts

+ 7 - 7
desktop/src/main/util.ts

@@ -56,6 +56,13 @@ export const openDirectory = async (dirPath: string) => {
     if (res) throw new Error(`Failed to open directory ${dirPath}: res`);
     if (res) throw new Error(`Failed to open directory ${dirPath}: res`);
 };
 };
 
 
+/**
+ * Open the app's log directory in the system's folder viewer.
+ *
+ * @see {@link openDirectory}
+ */
+export const openLogDirectory = () => openDirectory(logDirectoryPath());
+
 /**
 /**
  * Return the path where the logs for the app are saved.
  * Return the path where the logs for the app are saved.
  *
  *
@@ -72,10 +79,3 @@ export const openDirectory = async (dirPath: string) => {
  *
  *
  */
  */
 const logDirectoryPath = () => app.getPath("logs");
 const logDirectoryPath = () => app.getPath("logs");
-
-/**
- * Open the app's log directory in the system's folder viewer.
- *
- * @see {@link openDirectory}
- */
-export const openLogDirectory = () => openDirectory(logDirectoryPath());