mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 19:35:44 -05:00
[users] Hostname is empty if it will not be set
This commit is contained in:
parent
a12c6de2ef
commit
9299bedd7e
1 changed files with 7 additions and 1 deletions
|
@ -201,7 +201,13 @@ public:
|
|||
QString loginNameStatus() const;
|
||||
|
||||
/// The host name (name for the system)
|
||||
QString hostName() const { return m_hostName; }
|
||||
QString hostName() const
|
||||
{
|
||||
return ( ( hostNameAction() == HostNameAction::EtcHostname )
|
||||
|| ( hostNameAction() == HostNameAction::SystemdHostname ) )
|
||||
? m_hostName
|
||||
: QString();
|
||||
}
|
||||
/// Status message about hostname -- empty for "ok"
|
||||
QString hostNameStatus() const;
|
||||
/// How to write the hostname
|
||||
|
|
Loading…
Add table
Reference in a new issue