refine: center toast notifications and silence plugin sync feedback

- Change toast position from top-right to top-center for better visibility
- Remove success notifications for plugin sync operations to reduce noise
- Keep error notifications to alert users of actual issues
This commit is contained in:
Jason
2025-10-20 23:20:22 +08:00
parent 39981f8075
commit 13acc5323c
2 changed files with 2 additions and 11 deletions

View File

@@ -39,16 +39,7 @@ export function useProviderActions(activeApp: AppType) {
const isOfficial = provider.category === "official";
await settingsApi.applyClaudePluginConfig({ official: isOfficial });
toast.success(
isOfficial
? t("notifications.appliedToClaudePlugin", {
defaultValue: "已同步为官方配置",
})
: t("notifications.removedFromClaudePlugin", {
defaultValue: "已移除 Claude 插件配置",
}),
{ duration: 2200 },
);
// 静默执行,不显示成功通知
} catch (error) {
const detail =
extractErrorMessage(error) ||