mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
fix(session): use DefaultUserName
This commit is contained in:
parent
7377f31d70
commit
daf324781b
|
@ -51,7 +51,7 @@ func (s *session) enabled() bool {
|
|||
return len(s.templateText) > 0
|
||||
}
|
||||
showDefaultUser := s.props.getBool(DisplayDefault, true)
|
||||
if !showDefaultUser && defaultUser == s.UserName {
|
||||
if !showDefaultUser && s.DefaultUserName == s.UserName {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue