Improve formatting

This commit is contained in:
Emir SARI 2023-10-15 14:19:57 +03:00
parent e60d981e07
commit 814f5f0ccc

View File

@ -36,17 +36,21 @@ ProcessJob::~ProcessJob() {}
QString
ProcessJob::prettyName() const
{
return ( m_runInChroot ? tr( "Run command '%1' in target system" ) : tr( " Run command '%1'" ) ).arg( m_command );
return ( m_runInChroot ? "Run command '%1' in target system" : "Run command '%1'" ).arg( m_command );
}
QString
ProcessJob::prettyStatusMessage() const
{
if ( m_runInChroot )
return tr( "Running command %1 in chroot…", "@status" ).arg( m_command );
{
return tr( "Running command %1 in target system…", "@status" ).arg( m_command );
}
else
{
return tr( "Running command %1…", "@status" ).arg( m_command );
}
}
JobResult
ProcessJob::exec()