Compare commits

..

2 Commits

Author SHA1 Message Date
36bf0fcf33
bring setting window to top when wrong password 2024-06-22 22:48:17 +08:00
44fd986f6c
fix password dialog not on top 2024-06-22 22:38:25 +08:00

@ -276,7 +276,7 @@ def open_settings():
)
def save_changes():
entered_password = simpledialog.askstring("密码", "请输入密码:", show="*")
entered_password = simpledialog.askstring("密码", "请输入密码:", parent=settings_window, show="*")
if entered_password == PASSWORD:
save_settings(
allow_repeat_var.get(), int(min_id_var.get()), int(max_id_var.get())
@ -286,6 +286,7 @@ def open_settings():
close_settings_window()
else:
messagebox.showerror("错误", "密码错误")
settings_window.focus_force()
tk.Button(settings_window, text="保存", font=("宋体", 10), command=save_changes).grid(
row=8, column=0, columnspan=2, padx=5, pady=20, sticky="ew"