Show alert when non-Data dir selected/dropped

This commit is contained in:
Tyler Hallada 2022-03-10 00:40:34 -05:00
parent 8496c775f2
commit 391fa0669d

View File

@ -26,6 +26,10 @@ export const isPlugin = (file: File) => {
}
export const parsePluginFiles = (pluginFiles: File[], workerPool: WorkerPool) => {
if (pluginFiles.length === 0) {
alert("Found no plugins in the folder. Please select the Data folder underneath the Skyrim installation folder.");
return;
}
store.dispatch(clearPlugins());
store.dispatch(setPending(pluginFiles.length));