mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-01 23:21:59 +01:00
only show remote upgrade if initpk was received
This commit is contained in:
parent
998a65b873
commit
539e71ad47
@ -897,9 +897,10 @@ func (msh *MShellProc) Launch() {
|
|||||||
if cproc != nil && cproc.InitPk != nil {
|
if cproc != nil && cproc.InitPk != nil {
|
||||||
msh.Remote.InitPk = cproc.InitPk
|
msh.Remote.InitPk = cproc.InitPk
|
||||||
mshellVersion = cproc.InitPk.Version
|
mshellVersion = cproc.InitPk.Version
|
||||||
}
|
if semver.Compare(mshellVersion, MShellVersion) < 0 {
|
||||||
if semver.Compare(mshellVersion, MShellVersion) < 0 {
|
// only set NeedsMShellUpgrade if we got an InitPk
|
||||||
msh.NeedsMShellUpgrade = true
|
msh.NeedsMShellUpgrade = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// no notify here, because we'll call notify in either case below
|
// no notify here, because we'll call notify in either case below
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user