diff --git a/src/components/ui/mainSide.tsx b/src/components/ui/mainSide.tsx index c37cf90..4e4744c 100644 --- a/src/components/ui/mainSide.tsx +++ b/src/components/ui/mainSide.tsx @@ -27,7 +27,7 @@ function MainSide() { setLogTable(logListName.map((log, index) => { return - {index+1}. {log} + openFolder(logList[index].substring(0, logList[index].lastIndexOf('\\')))}>{index+1}. {log} -

Logs:

@@ -62,8 +61,8 @@ function MainSide() {

Output Folder:

-

{output}

- +

openFolder(settingList.output)}>{output}

+
) @@ -113,15 +112,15 @@ function openVid(updateHook:React.Dispatch>) { }); } -function openOutputFolder() { +function openFolder(folder:string) { if(settingList.output == "None") { logger.warningMSG("No output folder set!"); } else { - exec('start "" "' + settingList.output + '"'); + exec('start "" "' + folder + '"'); } } export default MainSide; export { - openOutputFolder + openFolder } \ No newline at end of file diff --git a/src/components/ui/renderingSide.tsx b/src/components/ui/renderingSide.tsx index 0adda12..6b4f8b1 100644 --- a/src/components/ui/renderingSide.tsx +++ b/src/components/ui/renderingSide.tsx @@ -1,6 +1,6 @@ import React, {useState} from "react"; import { settingList } from "../settings"; -import {openOutputFolder} from "./mainSide"; +import {openFolder} from "./mainSide"; let setLogNumber:React.Dispatch>; let setStatus:React.Dispatch>; @@ -15,7 +15,7 @@ function RenderingSide() {

{"Log " + logNumber + "/" + String(settingList.log.split("\"\"").length)}

{status}

- +
) } diff --git a/src/index.css b/src/index.css index 4a95a32..b192160 100644 --- a/src/index.css +++ b/src/index.css @@ -199,6 +199,10 @@ header h1 { #output { margin-left: 5px; } +#output:hover { + cursor: pointer; + text-decoration: underline; +} #openLogButton { margin-top: 5px; @@ -266,4 +270,9 @@ button:hover { #resetSettingsButton { height: 35px; +} + +#logList-Name:hover { + cursor: pointer; + text-decoration: underline; } \ No newline at end of file