Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed Feb 26, 2023
1 parent 4cffc09 commit 73ef13c
Show file tree
Hide file tree
Showing 6 changed files with 609 additions and 608 deletions.
3 changes: 3 additions & 0 deletions src/config/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ def Init():
path = Setting.GetConfigPath()
if not os.path.isdir(path):
os.mkdir(path)
path2 = Setting.GetLocalHomePath()
if not os.path.isdir(path2):
os.mkdir(path2)
# Setting.CheckRepair()
return

Expand Down
4 changes: 2 additions & 2 deletions src/task/qt_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def req(self):
# callBack(data)
# callBack(data, backParam)
def AddHttpTask(self, req, callBack=None, backParam=None):
from tools.qt_domain import QtDomainMgr

from task.task_http import TaskHttp
# if not Setting.IsOpenDoh.value:
return TaskHttp().AddHttpTask(req, callBack, backParam, cleanFlag=self.__taskFlagId)
Expand Down Expand Up @@ -89,7 +89,7 @@ def AddDownloadBookCache(self, loadPath, completeCallBack=None, backParam=0, cle
# downloadCompleteBack(data, st)
# downloadCompleteBack(data, st, backParam)
def AddDownloadTask(self, url, path, downloadCallBack=None, completeCallBack=None, downloadStCallBack=None, backParam=None, loadPath="", cachePath="", savePath="", cleanFlag="", isReload=False):
from tools.qt_domain import QtDomainMgr

from task.task_download import TaskDownload
if not cleanFlag:
cleanFlag = self.__taskFlagId
Expand Down
Loading

0 comments on commit 73ef13c

Please sign in to comment.