From ee36a0c039d547b3461e08c9f2bf1399190ee6b3 Mon Sep 17 00:00:00 2001 From: Edgar Fuste Date: Wed, 21 Oct 2020 17:00:45 +0200 Subject: [PATCH] Enhancement last commit: "Bug fix: open search form on load project if user variable is true" --- actions/basic.py | 4 ++-- giswater.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/basic.py b/actions/basic.py index 112a5f4af..6e5d110cc 100644 --- a/actions/basic.py +++ b/actions/basic.py @@ -60,11 +60,11 @@ def basic_filter_selectors(self): self.dlg_selector.rejected.connect(partial( self.save_current_tab, self.dlg_selector, self.dlg_selector.main_tab, 'basic')) - def basic_api_search(self): + def basic_api_search(self, load_project=False): """ Button 143: ApiSearch """ if self.api_search is None: self.api_search = ApiSearch(self.iface, self.settings, self.controller, self.plugin_dir) - self.api_search.api_search(load_project=True) + self.api_search.api_search(load_project=load_project) diff --git a/giswater.py b/giswater.py index 328e14eb4..d883a5b39 100644 --- a/giswater.py +++ b/giswater.py @@ -1004,7 +1004,7 @@ def project_read(self, show_warning=True): # Open automatically 'search docker' depending its value in user settings open_search = self.controller.get_user_setting_value('open_search', 'true') if open_search == 'true': - self.basic.basic_api_search() + self.basic.basic_api_search(load_project=True) # call dynamic mapzones repaint self.parent.set_style_mapzones()