mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
[partition] Introduce convenience translation for progress.
This commit is contained in:
parent
5c4286eebf
commit
55ed2ba4c0
4 changed files with 19 additions and 5 deletions
|
@ -135,10 +135,7 @@ SetPartFlagsJob::exec()
|
|||
Report report ( nullptr );
|
||||
SetPartFlagsOperation op( *m_device, *partition(), m_flags );
|
||||
op.setStatus( Operation::StatusRunning );
|
||||
connect( &op, &Operation::progress, [&]( int percent )
|
||||
{
|
||||
emit progress( percent / 100.0 );
|
||||
} );
|
||||
connect( &op, &Operation::progress, this, &SetPartFlagsJob::progress );
|
||||
|
||||
QString errorMessage = tr( "The installer failed to set flags on partition %1." )
|
||||
.arg( m_partition->partitionPath() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue