Skip to content

Commit d0a5dba

Browse files
committed
chore: deprecate warn
1 parent 522b447 commit d0a5dba

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/MaaDebugger/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ def run(
4949
ui.timer(2, update_checker.main, once=True) # Check update
5050
app.on_exception(on_exception)
5151

52+
ui.notification(
53+
"The MaaDebugger is deprecated! Please see https://github.com/MaaXYZ/MaaDebugger/issues/163 to learn more.",
54+
timeout=None,
55+
position="bottom-right",
56+
type="warning",
57+
# on_dismiss=lambda: ui.navigate.to(
58+
# "https://github.com/MaaXYZ/MaaDebugger/issues/163"
59+
# ),
60+
)
61+
5262
ui.run(
5363
title=APP_TITLE,
5464
storage_secret="maadbg",

0 commit comments

Comments
 (0)