1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

Pass the correct status queue and monkeypatch run_real in prepare_download

This commit is contained in:
loathingKernel 2022-06-26 01:27:18 +03:00
parent 9698bf445b
commit 99ab488820
2 changed files with 5 additions and 1 deletions

View file

@ -13,8 +13,8 @@ from PyQt5.QtWidgets import (
)
from legendary.core import LegendaryCore
from legendary.models.downloading import UIUpdate
from legendary.models.game import Game, InstalledGame
from rare.lgndr.downloading import UIUpdate
from rare.shared import LegendaryCoreSingleton, GlobalSignalsSingleton
from rare.components.dialogs.install_dialog import InstallDialog
from rare.components.tabs.downloads.dl_queue_widget import DlQueueWidget, DlWidget

View file

@ -1,4 +1,5 @@
import os
import sys
from multiprocessing import Queue
from typing import Callable
@ -9,6 +10,7 @@ from legendary.models.game import *
from legendary.utils.selective_dl import get_sdl_appname
from legendary.core import LegendaryCore as LegendaryCoreReal
from .manager import DLManager
from .exception import LgndrException
@ -144,8 +146,10 @@ class LegendaryCore(LegendaryCoreReal):
disable_delta=disable_delta,
override_delta_manifest=override_delta_manifest,
preferred_cdn=preferred_cdn,
status_q=status_q,
disable_https=disable_https)
dlm.run_real = DLManager.run_real.__get__(dlm, DLManager)
# game is either up to date or hasn't changed, so we have nothing to do
if not analysis.dl_size:
self.log.info('Download size is 0, the game is either already up to date or has not changed. Exiting...')