Skip to content

Commit e87ec0f

Browse files
committed
allow download selected of 1
downloads just core
1 parent bb56de6 commit e87ec0f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/download-selector.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export default function DownloadSelector() {
3939
const devChanges = 'https://github.com/EssentialsX/Essentials/commits/2.x';
4040

4141
const downloadSelected = async () => {
42-
if (selectedModules.length <= 1) return;
42+
if (selectedModules.length <= 1) {
43+
downloadSingle('core');
44+
return;
45+
}
4346

4447
setIsDownloading(true);
4548

@@ -182,7 +185,7 @@ export default function DownloadSelector() {
182185
</Button>
183186
<Button
184187
onClick={downloadSelected}
185-
disabled={selectedModules.length <= 1 || isDownloading}
188+
disabled={isDownloading}
186189
loading={isDownloading}
187190
fullWidth
188191
className='sm:w-auto'

0 commit comments

Comments
 (0)