Skip to content

Commit 1f4665d

Browse files
committed
fix
1 parent 8b945d6 commit 1f4665d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def openfile(path):
5555
content = file.read()
5656
file.close()
5757

58-
if not os.path.isfile(content): btnopenlast.configure(state="disabled")
58+
if not os.path.isfile(content): btnopenlast.configure(state="disabled")
59+
else:
60+
btnopenlast.configure(state="disabled")
5961

6062
root.update_idletasks()
6163
root.deiconify()

0 commit comments

Comments
 (0)