mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Disable save button after saving
This commit is contained in:
parent
99a4595e13
commit
7a1628480c
@ -357,6 +357,7 @@ class OMVGtk:
|
||||
dialog.hide()
|
||||
|
||||
def save_file(self, widget):
|
||||
self.save_button.set_sensitive(False)
|
||||
with open(self.file_path, "w") as file:
|
||||
file.write(self.buffer.get_text(self.buffer.get_start_iter(), self.buffer.get_end_iter()))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user