mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
c0a1c07090
commit
3bbed23bce
@ -126,10 +126,15 @@ def getalistname(parent, copy, btnplus, callback):
|
|||||||
|
|
||||||
def selectllmcallback(self, countnum, btnplus, fanyi, name):
|
def selectllmcallback(self, countnum, btnplus, fanyi, name):
|
||||||
uid = str(uuid.uuid4())
|
uid = str(uuid.uuid4())
|
||||||
_f1 = "./Lunatranslator/translator/{}.py".format(fanyi)
|
_f11 = "./Lunatranslator/translator/{}.py".format(fanyi)
|
||||||
|
_f12 = "./userconfig/copyed/{}.py".format(fanyi)
|
||||||
_f2 = "./userconfig/copyed/{}.py".format(uid)
|
_f2 = "./userconfig/copyed/{}.py".format(uid)
|
||||||
os.makedirs("./userconfig/copyed", exist_ok=True)
|
os.makedirs("./userconfig/copyed", exist_ok=True)
|
||||||
shutil.copy(_f1, _f2)
|
try:
|
||||||
|
shutil.copy(_f11, _f2)
|
||||||
|
except:
|
||||||
|
shutil.copy(_f12, _f2)
|
||||||
|
|
||||||
globalconfig["fanyi"][uid] = deepcopydict(globalconfig["fanyi"][fanyi])
|
globalconfig["fanyi"][uid] = deepcopydict(globalconfig["fanyi"][fanyi])
|
||||||
globalconfig["fanyi"][uid]["use"] = False
|
globalconfig["fanyi"][uid]["use"] = False
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 30)
|
set(VERSION_MINOR 30)
|
||||||
set(VERSION_PATCH 3)
|
set(VERSION_PATCH 4)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user