This commit is contained in:
恍兮惚兮 2024-11-14 23:34:51 +08:00
parent 2cbdb8273f
commit d42ab9cf77
2 changed files with 10 additions and 9 deletions

View File

@ -2608,14 +2608,14 @@ if (content.style.display === 'block') {
extra = "display: none;" extra = "display: none;"
uid = str(uuid.uuid4()) uid = str(uuid.uuid4())
lis.append( lis.append(
rf"""<li><div class="collapsible-header" id="{uid}" onclick="mdict_flowstyle_clickcallback('{uid}')">{title}</div><div class="collapsible-content" style="{extra}"> r"""<li><div class="collapsible-header" id="{}" onclick="mdict_flowstyle_clickcallback('{}')">{}</div><div class="collapsible-content" style="{}">
{res} {}
</div></li>""" </div></li>""".format(uid,uid,title,extra,res)
) )
content += rf""" content += r"""
<ul class="collapsible-list"> <ul class="collapsible-list">
{''.join(lis)} {}
</ul>""" </ul>""".format(''.join(lis))
return content return content

View File

@ -78,12 +78,13 @@ def doupdate():
bit = "_x86" bit = "_x86"
_6432 = "32" _6432 = "32"
shutil.copy( shutil.copy(
rf".\files\plugins\shareddllproxy{_6432}.exe", r".\files\plugins\shareddllproxy{}.exe".format(_6432),
gobject.getcachedir("Updater.exe"), gobject.getcachedir("Updater.exe"),
) )
subprocess.Popen( subprocess.Popen(
rf".\cache\Updater.exe update {int(gobject.baseobject.istriggertoupdate)} .\cache\update\LunaTranslator{bit} " r".\cache\Updater.exe update {} .\cache\update\LunaTranslator{} {}".format(
+ dynamiclink("{main_server}") int(gobject.baseobject.istriggertoupdate), bit, dynamiclink("{main_server}")
)
) )