mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 03:45:38 -04:00
Add job.setprogress to Python API.
This commit is contained in:
parent
c6c2c67560
commit
2636a1273f
4 changed files with 21 additions and 1 deletions
|
@ -31,4 +31,12 @@ PythonJobInterface::PythonJobInterface( const Calamares::PythonJob* parent )
|
|||
configuration = CalamaresPython::variantMapToPyDict( m_parent->m_configurationMap );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PythonJobInterface::setprogress( double progress )
|
||||
{
|
||||
if ( progress >= 0 && progress <= 1 )
|
||||
m_parent->emitProgress( progress );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue