From 5895af6d4bba750341fa5ca8f4199abccda6347b Mon Sep 17 00:00:00 2001 From: itsHenry <2671230065@qq.com> Date: Wed, 28 Jun 2023 13:08:02 +0800 Subject: [PATCH] feat: ask the user whether to open error reporting website --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 33eb55f..f3456e2 100644 --- a/main.py +++ b/main.py @@ -76,6 +76,8 @@ def get_platform_info(): except Exception as e: sentry_sdk.capture_exception(e) mb.showerror('错误','错误:' + str(e)) - mb.showinfo('错误反馈', '请在弹出的网页底部评论区中或在GitHub上将错误反馈给开发者!') - webbrowser.open("https://blog.itshenryz.com/2022/06/01/ledu-playback-download/") + yesnodialog = mb.askyesno('错误反馈', '是否打开错误反馈页面?') + if yesnodialog == True: + mb.showinfo('错误反馈', '请在弹出的网页底部评论区中或在GitHub上将错误反馈给开发者!') + webbrowser.open("https://blog.itshenryz.com/2022/06/01/ledu-playback-download/") sys.exit() \ No newline at end of file