mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
18c24a9a5f
commit
a02cdb5cce
@ -300,15 +300,15 @@ class AnkiWindow(QWidget):
|
|||||||
model_htmlback = self.backtext.toPlainText()
|
model_htmlback = self.backtext.toPlainText()
|
||||||
model_css = self.csstext.toPlainText()
|
model_css = self.csstext.toPlainText()
|
||||||
with open(
|
with open(
|
||||||
gobject.getuserconfigdir("anki/back.html"), "w", encoding="utf8"
|
gobject.getuserconfigdir("anki_2/back.html"), "w", encoding="utf8"
|
||||||
) as ff:
|
) as ff:
|
||||||
ff.write(model_htmlback)
|
ff.write(model_htmlback)
|
||||||
with open(
|
with open(
|
||||||
gobject.getuserconfigdir("anki/front.html"), "w", encoding="utf8"
|
gobject.getuserconfigdir("anki_2/front.html"), "w", encoding="utf8"
|
||||||
) as ff:
|
) as ff:
|
||||||
ff.write(model_htmlfront)
|
ff.write(model_htmlfront)
|
||||||
with open(
|
with open(
|
||||||
gobject.getuserconfigdir("anki/style.css"), "w", encoding="utf8"
|
gobject.getuserconfigdir("anki_2/style.css"), "w", encoding="utf8"
|
||||||
) as ff:
|
) as ff:
|
||||||
ff.write(model_css)
|
ff.write(model_css)
|
||||||
|
|
||||||
@ -637,11 +637,11 @@ class AnkiWindow(QWidget):
|
|||||||
|
|
||||||
def tryloadankitemplates(self):
|
def tryloadankitemplates(self):
|
||||||
try:
|
try:
|
||||||
with open("userconfig/anki/back.html", "r", encoding="utf8") as ff:
|
with open("userconfig/anki_2/back.html", "r", encoding="utf8") as ff:
|
||||||
model_htmlback = ff.read()
|
model_htmlback = ff.read()
|
||||||
with open("userconfig/anki/front.html", "r", encoding="utf8") as ff:
|
with open("userconfig/anki_2/front.html", "r", encoding="utf8") as ff:
|
||||||
model_htmlfront = ff.read()
|
model_htmlfront = ff.read()
|
||||||
with open("userconfig/anki/style.css", "r", encoding="utf8") as ff:
|
with open("userconfig/anki_2/style.css", "r", encoding="utf8") as ff:
|
||||||
model_css = ff.read()
|
model_css = ff.read()
|
||||||
except:
|
except:
|
||||||
with open("files/anki/back.html", "r", encoding="utf8") as ff:
|
with open("files/anki/back.html", "r", encoding="utf8") as ff:
|
||||||
|
@ -62,6 +62,7 @@ class playtimemanager:
|
|||||||
self.sqlsavegameinfo.execute(
|
self.sqlsavegameinfo.execute(
|
||||||
"INSERT INTO gameinternalid_v2 VALUES(NULL,?)", (gameuid,)
|
"INSERT INTO gameinternalid_v2 VALUES(NULL,?)", (gameuid,)
|
||||||
)
|
)
|
||||||
|
self.sqlsavegameinfo.commit()
|
||||||
else:
|
else:
|
||||||
return ret[0]
|
return ret[0]
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ class playtimemanager:
|
|||||||
"UPDATE traceplaytime_v4 SET timestop = ? WHERE (gameinternalid = ? and timestart = ?)",
|
"UPDATE traceplaytime_v4 SET timestop = ? WHERE (gameinternalid = ? and timestart = ?)",
|
||||||
(end, gameinternalid, start),
|
(end, gameinternalid, start),
|
||||||
)
|
)
|
||||||
|
self.sqlsavegameinfo.commit()
|
||||||
|
|
||||||
def checkgameplayingthread(self):
|
def checkgameplayingthread(self):
|
||||||
self.__currentexe = None
|
self.__currentexe = None
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 36)
|
set(VERSION_MINOR 36)
|
||||||
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