Skip to content

Commit

Permalink
delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Aug 22, 2024
1 parent b1c69ca commit c1cc7a2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 61 deletions.
9 changes: 0 additions & 9 deletions gui/components/expand/otherConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ def __init__(self, parent=None, config=None):
'selection': self.fhx,
'key': None
},
{
'label': OtherConfig.tr('修复Mumu无法登录日服'),
'type': 'button',
'selection': self.mumu_JP_login_fixer,
'key': None
},
{
'label': OtherConfig.tr('显示首页头图(下次启动时生效)'),
'type': 'switch',
Expand All @@ -27,8 +21,5 @@ def __init__(self, parent=None, config=None):

super().__init__(parent=parent, configItems=configItems, config=config, context="OtherConfig")

def mumu_JP_login_fixer(self):
self.config.get_main_thread().start_mumu_JP_login_fixer()

def fhx(self):
self.config.get_main_thread().start_fhx()
8 changes: 1 addition & 7 deletions gui/fragments/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _start_clicked(self):

def get_main_thread(self):
return self._main_thread_attach

def update_content_then(self, option: str):
self.startup_card.setContent(self.tr('开始你的档案之旅') + ' - ' + self.tr("完成后") + f' {option}')

Expand Down Expand Up @@ -273,12 +273,6 @@ def start_normal_task(self):
self.update_signal.emit([self.tr('无任务')])
self.display(self.tr('启动'))

def start_mumu_JP_login_fixer(self):
self._init_script()
if self._main_thread.send('solve', 'JP_server_mumu_login_fix'):
notify(title='BAAS', body='成功修复')
else:
notify(title='BAAS', body='修复失败, 请阅读首页日志')

def start_fhx(self):
self._init_script()
Expand Down
44 changes: 0 additions & 44 deletions module/JP_server_mumu_login_fix.py

This file was deleted.

1 change: 0 additions & 1 deletion module/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@
from module import sweep_activity
from module import dailyGameActivity
from module import cafe_invite
from module import JP_server_mumu_login_fix

0 comments on commit c1cc7a2

Please sign in to comment.