removed failure popup because it can trap the user without the ability to close the IDE
parent
664c01c49b
commit
0fe719782c
8
main.py
8
main.py
|
@ -63,13 +63,7 @@ def set_configuration_value(key, value, save_to_disk=True):
|
||||||
config_file.write(json.dumps(configuration))
|
config_file.write(json.dumps(configuration))
|
||||||
config_file.close()
|
config_file.close()
|
||||||
except:
|
except:
|
||||||
warn("Failed to save config file.", is_exception=True)
|
error("Failed to save config file.")
|
||||||
dialog = tk.Tk()
|
|
||||||
dialog.title("Failed to save config file")
|
|
||||||
ttk.Label(dialog, text="Failed to save the configuration file.").pack()
|
|
||||||
ttk.Button(dialog, text="Continue", command=dialog.destroy).pack()
|
|
||||||
dialog.resizable(0,0)
|
|
||||||
dialog.mainloop()
|
|
||||||
|
|
||||||
# easy way to get data out of window events
|
# easy way to get data out of window events
|
||||||
class Window_Interaction_Handler:
|
class Window_Interaction_Handler:
|
||||||
|
|
Reference in New Issue