diff --git a/qgepqwat2ili/gui/gui_export.py b/qgepqwat2ili/gui/gui_export.py index b6a7a98c..8d7648fd 100644 --- a/qgepqwat2ili/gui/gui_export.py +++ b/qgepqwat2ili/gui/gui_export.py @@ -36,8 +36,7 @@ def __init__(self, parent): # Remember save next to file checkbox s = QgsSettings().value("qgep_plugin/logs_next_to_file", False) - self.logs_next_to_file = s == True or s == "true" - self.save_logs_next_to_file_checkbox.setChecked(self.logs_next_to_file) + self.save_logs_next_to_file_checkbox.setChecked(s == True or s == "true") # Populate the labels list (restoring checked states of scaes) selected_scales = QgsSettings().value("qgep_plugin/last_selected_scales", "").split(",") @@ -53,7 +52,6 @@ def __init__(self, parent): def on_finish(self): # Remember save next to file checkbox - self.logs_next_to_file = self.save_logs_next_to_file_checkbox.isChecked() QgsSettings().setValue("qgep_plugin/logs_next_to_file", self.logs_next_to_file) # Save checked state of scales @@ -64,6 +62,10 @@ def on_finish(self): selected_scales.append(key) QgsSettings().setValue("qgep_plugin/last_selected_scales", ",".join(selected_scales)) + @property + def logs_next_to_file(self): + return self.save_logs_next_to_file_checkbox.isChecked() + @property def selected_ids(self): if self.limit_checkbox.isChecked():