mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[users] Tidy up job creation -- leave it to Config
This commit is contained in:
parent
98d42719e1
commit
287047fe1a
2 changed files with 3 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue