Skip to content

Commit

Permalink
Linux: only update restore status when we are not restoring (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja authored Sep 18, 2023
1 parent f752531 commit c5d19cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/drivemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ void Drive::updateDrive(const QString &name, uint64_t size, bool containsLive)
{
m_name = name;
m_size = size;
setRestoreStatus(containsLive ? CONTAINS_LIVE : CLEAN);
// Only update status when we are not in the "restoration" process
if (m_restoreStatus == CONTAINS_LIVE || m_restoreStatus == CLEAN)
setRestoreStatus(containsLive ? CONTAINS_LIVE : CLEAN);
}

QString Drive::name() const
Expand Down

0 comments on commit c5d19cb

Please sign in to comment.