Re-implemented re-encryption termination warning

Former-commit-id: 328eb0038e909a9831edce0f1b978323c491f4f5
Former-commit-id: 337b2de2b370e6d410a14f5cffcea6d1b3b26034
This commit is contained in:
2023-07-08 21:58:50 -04:00
parent d40d1daab5
commit ba1e2734be
+5
View File
@@ -244,6 +244,11 @@ def refresh_encryption():
from shutil import move, rmtree
from sshyp import decrypt, encrypt
# prompt for unlock and display do not close warning
decrypt(None)
curses_radio(['okay'], 'entry optimization may take some time - select "okay" to start - '
'do not terminate this process!')
# remove existing conflicts
for _extension in ('.new', '.old'):
if exists(f"{_directory}{_extension}"):