Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
not-nef committed Nov 4, 2022
1 parent 8b945d6 commit 1f4665d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def openfile(path):
content = file.read()
file.close()

if not os.path.isfile(content): btnopenlast.configure(state="disabled")
if not os.path.isfile(content): btnopenlast.configure(state="disabled")
else:
btnopenlast.configure(state="disabled")

root.update_idletasks()
root.deiconify()
Expand Down

0 comments on commit 1f4665d

Please sign in to comment.