mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-29 17:10:06 +08:00
fix(core): retain startup diagnostics until recovery
Show unresolved startup failures when the window becomes visible and clear them when either core mode starts successfully. Cover recovery followed by exit and WebView recreation, use neutral service permission wording, and document the Windows startup fix.
This commit is contained in:
@@ -67,14 +67,11 @@ const resolveNoticeMessage = (
|
||||
if (!i18n) return bound(notice.message)
|
||||
|
||||
if (i18n.key === SERVICE_PERMISSION_NOTICE) {
|
||||
const reason = i18n.params?.reason
|
||||
return (
|
||||
<>
|
||||
{t(SERVICE_PERMISSION_NOTICE, {
|
||||
reason: t(
|
||||
typeof reason === 'string' && reason.includes('is writable by')
|
||||
? 'settings.feedback.notifications.clashService.permissionWritableReason'
|
||||
: 'settings.feedback.notifications.clashService.permissionRejectedReason',
|
||||
'settings.feedback.notifications.clashService.permissionRejectedReason',
|
||||
),
|
||||
})}
|
||||
<Box sx={{ mt: 1 }}>
|
||||
|
||||
Reference in New Issue
Block a user