mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
159395fd2a
commit
305c69e06b
@ -962,6 +962,7 @@ class dialog_setting_game_internal(QWidget):
|
|||||||
try:
|
try:
|
||||||
_qw.remove()
|
_qw.remove()
|
||||||
savehook_new_data[gameuid][refkey].remove(t)
|
savehook_new_data[gameuid][refkey].remove(t)
|
||||||
|
self.labelflow.removewidget(_qw)
|
||||||
except:
|
except:
|
||||||
print_exc()
|
print_exc()
|
||||||
|
|
||||||
|
@ -182,6 +182,10 @@ class ScrollFlow(QWidget):
|
|||||||
def insertwidget(self, idx, wid):
|
def insertwidget(self, idx, wid):
|
||||||
self.l.insertWidget(idx, wid)
|
self.l.insertWidget(idx, wid)
|
||||||
|
|
||||||
|
@trypass
|
||||||
|
def removewidget(self, wid):
|
||||||
|
self.l.removeWidget(wid)
|
||||||
|
|
||||||
@trypass
|
@trypass
|
||||||
def removeidx(self, index):
|
def removeidx(self, index):
|
||||||
_ = self.l.takeAt(index)
|
_ = self.l.takeAt(index)
|
||||||
|
@ -201,11 +201,14 @@ class searcher(common):
|
|||||||
developers = []
|
developers = []
|
||||||
for _ in response["infobox"]:
|
for _ in response["infobox"]:
|
||||||
if _["key"] in ["游戏开发商", "开发", "发行"]:
|
if _["key"] in ["游戏开发商", "开发", "发行"]:
|
||||||
for __ in _["value"]:
|
if isinstance(_["value"], str):
|
||||||
if isinstance(__, str):
|
developers.append(_["value"])
|
||||||
developers.append(__)
|
else:
|
||||||
elif isinstance(__, dict):
|
for __ in _["value"]:
|
||||||
developers.append(__["v"])
|
if isinstance(__, str):
|
||||||
|
developers.append(__)
|
||||||
|
elif isinstance(__, dict):
|
||||||
|
developers.append(__["v"])
|
||||||
return {
|
return {
|
||||||
# "namemap": namemap,
|
# "namemap": namemap,
|
||||||
"title": response["name"],
|
"title": response["name"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user