Mac OS X: skip timemachine backup

Close #43
This commit is contained in:
Floris Bos 2020-05-23 16:08:44 +02:00
parent 73b9ae764d
commit 2c5432fe7f

View file

@ -75,6 +75,12 @@ void DriveListModel::refreshDriveList()
if (i.size == 0 || i.isVirtual)
continue;
#ifdef Q_OS_DARWIN
// Skip time machine backup. FIXME: is this best way to detect them?
if (i.mountpointLabels.size() && i.mountpointLabels.front() == "Time Machine Backups")
continue;
#endif
QString device = QString::fromStdString(i.device);
drivesInNewList.insert(device);