mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #9185 from ic4f/sg_tool_quickload
Check return value of quick_load
This commit is contained in:
@@ -839,8 +839,8 @@ class AbstractToolBox(Dictifiable, ManagesIntegratedToolPanelMixin):
|
||||
if os.path.isdir(child_path) and recursive:
|
||||
self.__watch_directory(child_path, elems, integrated_elems, load_panel_dict, recursive)
|
||||
elif self._looks_like_a_tool(child_path):
|
||||
quick_load(child_path, async_load=False)
|
||||
tool_loaded = True
|
||||
tool_id = quick_load(child_path, async_load=False)
|
||||
tool_loaded = bool(tool_id)
|
||||
if (tool_loaded or force_watch) and self._tool_watcher:
|
||||
self._tool_watcher.watch_directory(directory, quick_load)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user