mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-28 08:37:22 -08:00
Encrypted storage: shut down device if "Cancel" pressed
This commit is contained in:
parent
1177143f7d
commit
e0578ee28a
1 changed files with 71 additions and 65 deletions
|
@ -167,6 +167,11 @@ void encryptionManager::setupEncryptedStorage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void encryptionManager::unlockEncryptedStorage() {
|
void encryptionManager::unlockEncryptedStorage() {
|
||||||
|
if(global::encfs::cancelSetup == true) {
|
||||||
|
global::encfs::cancelSetup = false;
|
||||||
|
poweroff(true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
this->setStyleSheet("background-color: white");
|
this->setStyleSheet("background-color: white");
|
||||||
ui->activityWidget->show();
|
ui->activityWidget->show();
|
||||||
mkEncfsDirs();
|
mkEncfsDirs();
|
||||||
|
@ -241,6 +246,7 @@ void encryptionManager::unlockEncryptedStorage() {
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
t->start();
|
t->start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void encryptionManager::mkEncfsDirs() {
|
void encryptionManager::mkEncfsDirs() {
|
||||||
|
|
Loading…
Reference in a new issue