[plasmalnf] Simplify code
- Look-and-Feel job has no status to speak of - Coding style
This commit is contained in:
parent
3069f4133f
commit
8f590848bd
@ -20,30 +20,19 @@ PlasmaLnfJob::PlasmaLnfJob( const QString& lnfPath, const QString& id )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
PlasmaLnfJob::~PlasmaLnfJob() {}
|
||||
|
||||
|
||||
QString
|
||||
PlasmaLnfJob::prettyName() const
|
||||
{
|
||||
return tr( "Plasma Look-and-Feel Job" );
|
||||
}
|
||||
|
||||
QString
|
||||
PlasmaLnfJob::prettyStatusMessage() const
|
||||
{
|
||||
return prettyName();
|
||||
}
|
||||
|
||||
|
||||
Calamares::JobResult
|
||||
PlasmaLnfJob::exec()
|
||||
{
|
||||
cDebug() << "Plasma Look-and-Feel Job";
|
||||
|
||||
auto system = CalamaresUtils::System::instance();
|
||||
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
|
||||
auto* system = CalamaresUtils::System::instance();
|
||||
auto* gs = Calamares::JobQueue::instance()->globalStorage();
|
||||
|
||||
QStringList command( { "sudo",
|
||||
"-E",
|
||||
@ -59,8 +48,10 @@ PlasmaLnfJob::exec()
|
||||
|
||||
int r = system->targetEnvCall( command );
|
||||
if ( r )
|
||||
{
|
||||
return Calamares::JobResult::error( tr( "Could not select KDE Plasma Look-and-Feel package" ),
|
||||
tr( "Could not select KDE Plasma Look-and-Feel package" ) );
|
||||
}
|
||||
|
||||
return Calamares::JobResult::ok();
|
||||
}
|
||||
|
@ -24,7 +24,6 @@ public:
|
||||
~PlasmaLnfJob() override;
|
||||
|
||||
QString prettyName() const override;
|
||||
QString prettyStatusMessage() const override;
|
||||
|
||||
Calamares::JobResult exec() override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user