From cfee61836fad3285bc0573f0b0b356c061bd213f Mon Sep 17 00:00:00 2001 From: icarus Date: Sat, 13 Dec 2025 00:58:31 +0800 Subject: [PATCH] fix: remove outdated toast comment and cleanup code The toast component now supports programmatic closing, making the TODO comment obsolete. Clean up the code by removing the unnecessary comment. --- src/renderer/src/utils/dataLimit.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/renderer/src/utils/dataLimit.ts b/src/renderer/src/utils/dataLimit.ts index 15fb794afb..e8bb3773f7 100644 --- a/src/renderer/src/utils/dataLimit.ts +++ b/src/renderer/src/utils/dataLimit.ts @@ -83,7 +83,6 @@ export async function checkDataLimit() { } currentInterval = setInterval(check, CHECK_INTERVAL_WARNING) } else if (!shouldShowWarning && currentToastId) { - // TODO: new toast component cannot be closed programmatically. add a dismiss button in the toast. window.toast.close(currentToastId) currentToastId = null