Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Jul 8, 2024
1 parent 220b8be commit 27b6f0e
Show file tree
Hide file tree
Showing 16 changed files with 424 additions and 457 deletions.
3 changes: 0 additions & 3 deletions LunaTranslator/LunaTranslator/LunaTranslator_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

sys.path.append("./")
sys.path.append("./userconfig")
sys.path.insert(
0, "./LunaTranslator/network/" + ["winhttp", "libcurl"][globalconfig["network"]]
)

import gobject

Expand Down
7 changes: 1 addition & 6 deletions LunaTranslator/LunaTranslator/gui/setting_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,7 @@ def setTab_proxy_lazy(self, basel):
"网络请求",
(
D_getsimplecombobox(
["winhttp", "libcurl"],
globalconfig,
"network",
callback=functools.partial(
gobject.baseobject.showneedrestart, "网络请求"
),
["winhttp", "libcurl"], globalconfig, "network"
),
5,
),
Expand Down
2 changes: 1 addition & 1 deletion LunaTranslator/LunaTranslator/metadata/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from myutils.commonbase import proxysession
from myutils.config import globalconfig, savehook_new_data
from traceback import print_exc
from network.requests_common import NetWorkException
from requests import NetWorkException


class common:
Expand Down
2 changes: 1 addition & 1 deletion LunaTranslator/LunaTranslator/metadata/steam.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from myutils.utils import initanewitem, gamdidchangedtask
import functools
import time
from network.requests_common import NetWorkException
from requests import NetWorkException
from qtsymbols import *
from gui.usefulwidget import getlineedit
from gui.dialog_savedgame import getreflist, getalistname
Expand Down
Loading

0 comments on commit 27b6f0e

Please sign in to comment.