()
| 97 | }; |
| 98 | |
| 99 | const getStatusText = () => { |
| 100 | switch (updateStatus) { |
| 101 | case 'checking': |
| 102 | return t('about.checking'); |
| 103 | case 'available': |
| 104 | return `${t('about.updateAvailable')} (v${newVersion})`; |
| 105 | case 'installing': |
| 106 | return t('about.installing'); |
| 107 | case 'latest': |
| 108 | return t('about.latest'); |
| 109 | case 'error': |
| 110 | return t('about.error'); |
| 111 | default: |
| 112 | return ''; |
| 113 | } |
| 114 | }; |
| 115 | |
| 116 | const handleOpenGithub = async () => { |
| 117 | try { |