From 970915fbf37559c4c5e37500ae6a5caebfece123 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Tue, 6 Apr 2021 10:33:23 -0400 Subject: [PATCH] Update Picocrypt.py --- src/unstable/Picocrypt.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/unstable/Picocrypt.py b/src/unstable/Picocrypt.py index d15ed06..ce80811 100644 --- a/src/unstable/Picocrypt.py +++ b/src/unstable/Picocrypt.py @@ -61,7 +61,7 @@ reedsoloErrors = False # Strings strings = [ - "File metadata (used to store some text along with the file):", + "File metadata (optional):", "Compressing files together...", "Error. The provided password is incorrect.", "Error. The input file is corrupted.", @@ -222,8 +222,9 @@ def saveAs(): ), confirmoverwrite=True ) - outputInput.delete(0,tkinter.END) - outputInput.insert(0,(tmp if mode=="decrypt" else tmp[:-4])) + if tmp: + outputInput.delete(0,tkinter.END) + outputInput.insert(0,(tmp if mode=="decrypt" else tmp[:-4])) saveAsBtn = tkinter.ttk.Button( tk, text="Save as",