Skip to content

Commit 9db45b6

Browse files
authored
Fixed important bug
Signed-off-by: IDoUseLinux <142350850+IDoUseLinux@users.noreply.github.com>
1 parent c6a0285 commit 9db45b6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

PyQuCryptor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Since I have no idea how to do version control
1111
about_txt = """\
12-
PyQuCryptor Build 2023-10-30.gpc_stable.rc4.v369-rtm
12+
PyQuCryptor Build 2023-10-30.gpc_stable.rc4.v370-rtm
1313
Made by: Jinghao Li (Backend, frontend, head-developer), Kekoa Dang (Frontend), Zoe Murata (Logo designer)
1414
License: BSD 3-Clause No Nuclear License 2014
1515
Date of programming: 2023-10-30
@@ -48,7 +48,7 @@ def resource_path(relative_path):
4848
other_licenses = license_file.read()
4949

5050
## IDK what this is for now considering we've never used it
51-
build_string = "2023-10-30.gpc_stable.rc4.v369-rtm"
51+
build_string = "2023-10-30.gpc_stable.rc4.v370-rtm"
5252

5353
## But the build tag is pratically just a joke
5454
build_tag = ['stable', 'impressive', 'rc4', 'rtm']
@@ -353,7 +353,8 @@ def decrypt_file(self, password, path_to_file, delete_og_file = False ) :
353353
open(str.replace(path_to_file, ".encr", ''))
354354
if messagebox.askyesno(title="PyQucryptor: File Already Exists Error", message="A file with the same name already exists. Do you want to overwrite?") :
355355
os.replace(path_to_file + ".temp", str.replace(path_to_file, ".encr", ''))
356-
else : os.remove(path_to_file + ".temp")
356+
else :
357+
os.remove(path_to_file + ".temp")
357358
except FileNotFoundError:
358359
os.rename(path_to_file + ".temp", str.replace(path_to_file, ".encr", ''))
359360

@@ -747,7 +748,7 @@ def selectmodecmd(value = None): ## Select what screen your on encrypt / decrypt
747748
set_password = customtkinter.CTkLabel(app, text="Enter Your Password", bg_color="#192E45", font=("Arial", 18, "bold"))
748749
set_password.pack(side=tk.BOTTOM, padx=(30), pady=(0,2), anchor=tk.W)
749750

750-
encryptupload_button = customtkinter.CTkButton(app, text="Select Encrypted File", font=("Arial", 18), fg_color="#393939", bg_color="#192E45", hover_color="#2E2E2E", command=encryptupload, height=25, width=325)
751+
encryptupload_button = customtkinter.CTkButton(app, text="Select Encrypted File", font=("Arial", 18), fg_color="#393939", bg_color="#192E45", hover_color="#2E2E2E", command=decryptfileupload, height=25, width=325)
751752
encryptupload_button.pack(side=tk.BOTTOM, padx=(30), pady=(15, 25), anchor=tk.CENTER)
752753

753754
file_path_label = customtkinter.CTkEntry(app, placeholder_text="Encrypted File Path", height=35, width=325, bg_color="#192E45", font=("Arial", 15))

0 commit comments

Comments
 (0)