mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -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() {
|
||||
if(global::encfs::cancelSetup == true) {
|
||||
global::encfs::cancelSetup = false;
|
||||
poweroff(true);
|
||||
}
|
||||
else {
|
||||
this->setStyleSheet("background-color: white");
|
||||
ui->activityWidget->show();
|
||||
mkEncfsDirs();
|
||||
|
@ -242,6 +247,7 @@ void encryptionManager::unlockEncryptedStorage() {
|
|||
} );
|
||||
t->start();
|
||||
}
|
||||
}
|
||||
|
||||
void encryptionManager::mkEncfsDirs() {
|
||||
QDir encfsDir;
|
||||
|
|
Loading…
Reference in a new issue