Skip to content

Commit

Permalink
fix: For windows os the user need to start the Neuron manually after …
Browse files Browse the repository at this point in the history
…installed. (#3196)
  • Loading branch information
yanguoyu committed Jun 26, 2024
1 parent 878da3c commit 4493d79
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/components/GeneralSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,15 @@ const UpdateDownloadStatus = ({
}

if (downloaded) {
const isWin = process.platform === 'win32'
return (
<Dialog
show={show}
onCancel={onCancel}
showCancel={false}
onConfirm={handleConfirm}
disabled={!downloaded}
confirmText={t('updates.quit-and-install')}
confirmText={t(`updates.${isWin ? 'quit-and-install' : 'quit-and-install-restart'}`)}
title={t('updates.update-available')}
confirmProps={{
'data-method': 'install',
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@
"updates-found-do-you-want-to-update": "An update ({{version}}) is available",
"install-update": "Immediate Update",
"updates-downloaded-about-to-quit-and-install": "Update downloaded. Ready to install and relaunch.",
"quit-and-install": "Install and relaunch"
"quit-and-install-restart": "Install and relaunch",
"quit-and-install": "Immediate Install"
},
"datetime": {
"mon": {
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,8 @@
"updates-found-do-you-want-to-update": "Hay una actualización ({{versión}}) disponible",
"install-update": "Actualización inmediata",
"updates-downloaded-about-to-quit-and-install": "Actualización descargada. Listo para instalar y reiniciar.",
"quit-and-install": "Instalar y reiniciar"
"quit-and-install-restart": "Instalar y reiniciar",
"quit-and-install": "Inmediata Instalar"
},
"datetime": {
"mon": {
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,8 @@
"updates-found-do-you-want-to-update": "Une mise à jour ({{version}}) est disponible",
"install-update": "Mise à jour immédiate",
"updates-downloaded-about-to-quit-and-install": "Mise à jour téléchargée. Prêt à installer et relancer.",
"quit-and-install": "Installer et relancer"
"quit-and-install-restart": "Installer et relancer",
"quit-and-install": "Immédiate Installer"
},
"datetime": {
"mon": {
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,8 @@
"updates-found-do-you-want-to-update": "新版本 {{version}} 可供下載",
"install-update": "立即更新",
"updates-downloaded-about-to-quit-and-install": "下載完成。請安裝新版本。",
"quit-and-install": "安裝並重啓應用"
"quit-and-install-restart": "安裝並重啓應用",
"quit-and-install": "立即安裝"
},
"datetime": {
"mon": {
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,8 @@
"updates-found-do-you-want-to-update": "新版本 {{version}} 可供下载",
"install-update": "立即更新",
"updates-downloaded-about-to-quit-and-install": "下载完成。请安装新版本。",
"quit-and-install": "安装并重启应用"
"quit-and-install-restart": "安装并重启应用",
"quit-and-install": "立即安装"
},
"datetime": {
"mon": {
Expand Down

2 comments on commit 4493d79

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 9675903098

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 9675900866

Please sign in to comment.