This commit is contained in:
恍兮惚兮 2024-08-03 16:10:33 +08:00
parent 159395fd2a
commit 305c69e06b
3 changed files with 13 additions and 5 deletions

View File

@ -962,6 +962,7 @@ class dialog_setting_game_internal(QWidget):
try:
_qw.remove()
savehook_new_data[gameuid][refkey].remove(t)
self.labelflow.removewidget(_qw)
except:
print_exc()

View File

@ -182,6 +182,10 @@ class ScrollFlow(QWidget):
def insertwidget(self, idx, wid):
self.l.insertWidget(idx, wid)
@trypass
def removewidget(self, wid):
self.l.removeWidget(wid)
@trypass
def removeidx(self, index):
_ = self.l.takeAt(index)

View File

@ -201,6 +201,9 @@ class searcher(common):
developers = []
for _ in response["infobox"]:
if _["key"] in ["游戏开发商", "开发", "发行"]:
if isinstance(_["value"], str):
developers.append(_["value"])
else:
for __ in _["value"]:
if isinstance(__, str):
developers.append(__)