Skip to content

Commit

Permalink
Fixed issue with warning popping up on empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
WhenLifeHandsYouLemons committed Feb 22, 2024
1 parent 90b5b2d commit 4051146
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Encryptext.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def openFile(Event=None, current=False):
tag_no = 0

# Check if the textbox is empty
if len(textbox.get("1.0", tk.END)) != 2 and textbox.get("1.0", tk.END) != "\n\n" and not current:
new_file_confirm = messagebox.askyesno("Open File", "Open a file?\n\nAny unsaved changes will be lost.")
else:
new_file_confirm = True
Expand Down

0 comments on commit 4051146

Please sign in to comment.