mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Fixed empty log in menu
This commit is contained in:
@@ -21,6 +21,10 @@ function MainSide() {
|
|||||||
</tr>
|
</tr>
|
||||||
}));
|
}));
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if(settingList.log == "") {
|
||||||
|
setLogTable([]);
|
||||||
|
} else {
|
||||||
|
|
||||||
const logList = settingList.log.substring(1).slice(0, -1).split('""');
|
const logList = settingList.log.substring(1).slice(0, -1).split('""');
|
||||||
|
|
||||||
const logListName:string[] = [];
|
const logListName:string[] = [];
|
||||||
@@ -38,6 +42,7 @@ function MainSide() {
|
|||||||
}}>Delete</button></td>
|
}}>Delete</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
}));
|
}));
|
||||||
|
}
|
||||||
}, [logs]);
|
}, [logs]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -70,7 +75,7 @@ function MainSide() {
|
|||||||
<div className="dataDiv" id="outputDiv">
|
<div className="dataDiv" id="outputDiv">
|
||||||
<h4>Output Folder:</h4>
|
<h4>Output Folder:</h4>
|
||||||
<p id="output">{output}</p>
|
<p id="output">{output}</p>
|
||||||
<button onClick={() => openVid(setOutput)}>Open Video</button>
|
<button onClick={() => openVid(setOutput)}>Select Output Folder</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user