1
0
mirror of https://github.com/QRouland/UTPass.git synced 2026-01-10 03:26:57 +00:00

Refactor unzip password store

This commit is contained in:
2025-01-20 15:46:57 +01:00
parent 20aff3a404
commit 7a2b12419d
10 changed files with 182 additions and 85 deletions

View File

@@ -71,6 +71,9 @@ void Pass::showResult(Error err, QString plain_text)
bool Pass::deletePasswordStore()
{
if (!this->m_sem->tryAcquire(1, 500)) {
return false;
}
qInfo() << "Pass delete Password Store";
auto job = new RmJob(this->password_store());
qDebug() << "Delete Password Store at " << this->password_store();
@@ -82,6 +85,7 @@ bool Pass::deletePasswordStore()
void Pass::deletePasswordStoreResult(bool err)
{
qDebug() << "Pass delete Password StoreResult";
if (err) { //dir.removeRecursively()) {
qInfo() << "Pass delete Password Store Failed";
@@ -91,6 +95,7 @@ void Pass::deletePasswordStoreResult(bool err)
qInfo() << "Pass delete Password Store Succeed";
emit deletePasswordStoreSucceed();
}
this->m_sem->release(1);
}