mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-28 03:21:26 -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
|
return len(s.templateText) > 0
|
||||||
}
|
}
|
||||||
showDefaultUser := s.props.getBool(DisplayDefault, true)
|
showDefaultUser := s.props.getBool(DisplayDefault, true)
|
||||||
if !showDefaultUser && defaultUser == s.UserName {
|
if !showDefaultUser && s.DefaultUserName == s.UserName {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in a new issue