mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Fixed empty output path on abort
This commit is contained in:
@@ -105,8 +105,10 @@ function openVid(updateHook:React.Dispatch<React.SetStateAction<string>>) {
|
|||||||
"openDirectory"
|
"openDirectory"
|
||||||
]
|
]
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
|
if(result.filePaths.length > 0) {
|
||||||
updateSettings({output:String(result.filePaths)});
|
updateSettings({output:String(result.filePaths)});
|
||||||
updateHook(String(result.filePaths));
|
updateHook(String(result.filePaths));
|
||||||
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
logger.errorMSG(err);
|
logger.errorMSG(err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user