mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-28 21:27:14 +00:00
feat: 添加窗口处于暂停模式的提示
This commit is contained in:
@@ -255,6 +255,11 @@ def main(first_time_init=False):
|
|||||||
qq_bot_thread = threading.Thread(target=run_bot_wrapper, args=(), daemon=True)
|
qq_bot_thread = threading.Thread(target=run_bot_wrapper, args=(), daemon=True)
|
||||||
qq_bot_thread.start()
|
qq_bot_thread.start()
|
||||||
finally:
|
finally:
|
||||||
|
# 判断若是Windows,输出选择模式可能会暂停程序的警告
|
||||||
|
if os.name == 'nt':
|
||||||
|
time.sleep(2)
|
||||||
|
logging.info("您正在使用Windows系统,若命令行窗口处于“选择”模式,程序可能会被暂停,此时请右键点击窗口空白区域使其取消选择模式。")
|
||||||
|
|
||||||
time.sleep(12)
|
time.sleep(12)
|
||||||
if first_time_init:
|
if first_time_init:
|
||||||
if not known_exception_caught:
|
if not known_exception_caught:
|
||||||
|
|||||||
Reference in New Issue
Block a user