Fix for Change TWRP Folder

Although the "Change TWRP Folder" function apparently works on unencrypted devices, when we reboot to recover the folder is changed to the default (TWRP). This is happening, from what I could verify, since the TWRP A10.

There was a previous fix just for the function to reappear in the GUI https://gerrit.twrp.me/c/android_bootable_recovery/+/4971

This patch is intended to fix the function by making it work with encrypted or unencrypted device.

Signed-off-by: Fernando Oliveira <fernandoaju78@gmail.com>
Change-Id: I1f01b3624cc0cad77f66022a724160c3e1c30e3e
(cherry picked from commit 073c430afe5e09f521de92307b88b819603fe90c)
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 22a9a06..c19494e 100755
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -1418,7 +1418,7 @@
 	DIR* d;
 	struct dirent* de;
 
-	if (DataManager::GetIntValue(TW_IS_ENCRYPTED)) {
+	if (DataManager::GetIntValue(TW_IS_ENCRYPTED) && DataManager::GetIntValue(TW_CRYPTO_PWTYPE)) {
 		goto exit;
 	}