mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
encryptionmanager.cpp
: Nonsensical fixes
This commit is contained in:
parent
08fc6ea967
commit
c733dd23ab
1 changed files with 4 additions and 3 deletions
|
@ -236,8 +236,10 @@ void encryptionManager::unlockEncryptedStorage() {
|
|||
t->setInterval(1000);
|
||||
connect(t, &QTimer::timeout, [&]() {
|
||||
if(QFile::exists("/external_root/run/encfs_mounted")) {
|
||||
exitStatus = checkconfig("/external_root/run/encfs_mounted");
|
||||
if(exitStatus == false) {
|
||||
exitStatus = true;
|
||||
if(readFile("/external_root/run/encfs_mounted") != "true\n") {
|
||||
exitStatus = false;
|
||||
QFile::remove("/external_root/run/encfs_mounted");
|
||||
QString function = __func__; log(function + ": Invalid passphrase", className);
|
||||
if(setupMessageBoxRan == false) {
|
||||
int delay = 0;
|
||||
|
@ -331,7 +333,6 @@ void encryptionManager::setupFailedAuthenticationMessageBox() {
|
|||
log("Showing 'Authentication failed' message box", className);
|
||||
ui->activityWidget->hide();
|
||||
QMessageBox::critical(this, tr("Invalid argument"), tr("<font face='u001'>Invalid passphrase. Please try again.</font>"));
|
||||
QFile::remove("/external_root/run/encfs_mounted");
|
||||
quit_restart();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue