feat: 后端添加关闭接口

This commit is contained in:
DLmaster361
2025-09-23 14:15:44 +08:00
parent 22ebe7e51b
commit 133ab0e78c
3 changed files with 20 additions and 4 deletions

View File

@@ -111,8 +111,6 @@ class _MainTimer:
async def set_silence(self):
"""静默模式通过模拟老板键来隐藏模拟器窗口"""
logger.debug("检查静默模式")
if (
len(Config.if_ignore_silence) > 0
and Config.get("Function", "IfSilence")
@@ -145,7 +143,5 @@ class _MainTimer:
except Exception as e:
logger.exception(f"模拟按键时出错: {e}")
logger.debug("静默模式检查完毕")
MainTimer = _MainTimer()