Skip to content

Commit

Permalink
Enhancement last commit: "Bug fix: open search form on load project i…
Browse files Browse the repository at this point in the history
…f user variable is true"
  • Loading branch information
edgarfuste committed Oct 21, 2020
1 parent 2f64ca6 commit ee36a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions actions/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

2 changes: 1 addition & 1 deletion giswater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ee36a0c

Please sign in to comment.