File tree 4 files changed +4
-2
lines changed
src/backend/downloadmanager
4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { callAbortController } from 'backend/utils/aborthandler/aborthandler'
9
9
import { notify } from '../dialog/dialog'
10
10
import i18next from 'i18next'
11
11
import { createRedistDMQueueElement } from 'backend/storeManagers/gog/redist'
12
+ import { existsSync } from 'fs'
13
+ import { gogRedistPath } from 'backend/constants'
12
14
13
15
const downloadManager = new TypeCheckedStoreBackend ( 'downloadManager' , {
14
16
cwd : 'store' ,
@@ -141,8 +143,8 @@ async function addToQueue(element: DMQueueElement) {
141
143
installInfo &&
142
144
'dependencies' in installInfo . manifest
143
145
) {
144
- const newDependencies = installInfo . manifest . dependencies
145
- if ( newDependencies ?. length ) {
146
+ const newDependencies = installInfo . manifest . dependencies || [ ]
147
+ if ( newDependencies ?. length || ! existsSync ( gogRedistPath ) ) {
146
148
// create redist element
147
149
const redistElement = createRedistDMQueueElement ( )
148
150
redistElement . params . dependencies = newDependencies
You can’t perform that action at this time.
0 commit comments