diff --git a/app/containers/userPanel/index.js b/app/containers/userPanel/index.js index 3769b08b..6e84e540 100644 --- a/app/containers/userPanel/index.js +++ b/app/containers/userPanel/index.js @@ -267,6 +267,7 @@ class UserPanel extends Component { image: null }) removeAccessToken() + remote.getCurrentWindow().setTitle('Lepton') // update the app title } renderProfile () { diff --git a/app/index.js b/app/index.js index 249096d9..30f5b6e6 100644 --- a/app/index.js +++ b/app/index.js @@ -392,6 +392,8 @@ function initUserSession (token) { syncLocalPref(newProfile.login) logger.debug('-----> after syncLocalPref') + remote.getCurrentWindow().setTitle(`${ newProfile.login } | Lepton`) // update the app title + logger.info('[Dispatch] updateUserSession ACTIVE') reduxStore.dispatch(updateUserSession({ activeStatus: 'ACTIVE', profile: newProfile })) })