[partition] Insert annoying 3-sec delay

This is intended for testing -- it helps debug where a slow
requirement check blocks the UI.
This commit is contained in:
Adriaan de Groot 2017-12-12 07:17:16 -05:00
parent 4566e53d01
commit 29e532a790

View File

@ -56,6 +56,8 @@
#include <QtConcurrent/QtConcurrent>
#include <QFutureWatcher>
#include <unistd.h> // For sleep(3)
PartitionViewStep::PartitionViewStep( QObject* parent )
: Calamares::ViewStep( parent )
, m_core( nullptr )
@ -565,6 +567,8 @@ Calamares::RequirementsList PartitionViewStep::checkRequirements()
if (m_future)
m_future->waitForFinished();
sleep(3);
Calamares::RequirementsList l;
l.append(
{