add publish throttle

Closes #2152

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-19 21:51:47 +08:00
parent 8505e6bca0
commit d4d0fbe81b
7 changed files with 16 additions and 8 deletions

View File

@@ -413,7 +413,7 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
iconColor: enablePublish.value
? themeData.colorScheme.primary
: themeData.colorScheme.outline,
onPressed: enablePublish.value ? onPublish : null,
onPressed: enablePublish.value ? onPublishThrottle : null,
icon: const Icon(Icons.send),
),
),