[users] Tidy up job creation -- leave it to Config
This commit is contained in:
parent
98d42719e1
commit
287047fe1a
@ -88,10 +88,10 @@ UsersViewStep::isAtEnd() const
|
||||
}
|
||||
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
Calamares::JobList
|
||||
UsersViewStep::jobs() const
|
||||
{
|
||||
return m_jobs;
|
||||
return m_config->createJobs();
|
||||
}
|
||||
|
||||
|
||||
@ -108,7 +108,6 @@ UsersViewStep::onActivate()
|
||||
void
|
||||
UsersViewStep::onLeave()
|
||||
{
|
||||
m_jobs = m_config->createJobs();
|
||||
m_config->finalizeGlobalStorage();
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
bool isAtBeginning() const override;
|
||||
bool isAtEnd() const override;
|
||||
|
||||
QList< Calamares::job_ptr > jobs() const override;
|
||||
Calamares::JobList jobs() const override;
|
||||
|
||||
void onActivate() override;
|
||||
void onLeave() override;
|
||||
@ -48,8 +48,6 @@ public:
|
||||
|
||||
private:
|
||||
UsersPage* m_widget;
|
||||
Calamares::JobList m_jobs;
|
||||
|
||||
Config* m_config;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user