Enumerate drives in seperate thread

Ref #87
This commit is contained in:
Floris Bos 2020-07-02 23:31:20 +02:00
parent 6069e8f441
commit 755d7dc6ab
8 changed files with 115 additions and 23 deletions

View file

@ -323,10 +323,16 @@ void ImageWriter::setCustomOsListUrl(const QUrl &url)
_repo = url;
}
/* Refresh the list of available drives */
void ImageWriter::refreshDriveList()
/* Start polling the list of available drives */
void ImageWriter::startDriveListPolling()
{
_drivelist.refreshDriveList();
_drivelist.startPolling();
}
/* Stop polling the list of available drives */
void ImageWriter::stopDriveListPolling()
{
_drivelist.stopPolling();
}
DriveListModel *ImageWriter::getDriveList()