From 5bf0c36e60b36937e3a0bdd45dbbbed9e99c6f4f Mon Sep 17 00:00:00 2001 From: ashdriod Date: Mon, 16 Oct 2023 11:40:54 +0200 Subject: [PATCH] Save WIP --- dtool_lookup_gui/views/main_window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dtool_lookup_gui/views/main_window.py b/dtool_lookup_gui/views/main_window.py index 1e0c3602..e428410a 100644 --- a/dtool_lookup_gui/views/main_window.py +++ b/dtool_lookup_gui/views/main_window.py @@ -815,9 +815,8 @@ def on_save_metadata_button_clicked(self, widget): else: # Set the success message as the button label self.linting_errors_button.set_label("No linting issues found!") - # Continue with saving if no linting issues - pass - + # Save the content using the put_readme method + self.dataset_list_box.get_selected_row().dataset.put_readme(yaml_content) @Gtk.Template.Callback() def on_linting_errors_button_clicked(self, widget): # Check if the problems attribute exists