mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Create jobs in locale viewmodule.
This commit is contained in:
parent
34c5ac3182
commit
271b0945c9
5 changed files with 24 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "LocalePage.h"
|
||||
|
||||
#include "timezonewidget/timezonewidget.h"
|
||||
#include "SetTimezoneJob.h"
|
||||
|
||||
#include <QBoxLayout>
|
||||
#include <QComboBox>
|
||||
|
@ -179,3 +180,15 @@ LocalePage::prettyStatus() const
|
|||
return status;
|
||||
}
|
||||
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
LocalePage::createJobs()
|
||||
{
|
||||
QList< Calamares::job_ptr > list;
|
||||
LocaleGlobal::Location location = m_tzWidget->getCurrentLocation();
|
||||
|
||||
Calamares::Job* j = new SetTimezoneJob( location.region, location.zone );
|
||||
list.append( Calamares::job_ptr( j ) );
|
||||
|
||||
return list;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue