fast check for autocomplete!
This commit is contained in:
@@ -24,7 +24,7 @@ namespace dropshell
|
||||
!service_info.user.empty();
|
||||
}
|
||||
|
||||
std::vector<LocalServiceInfo> get_server_services_info(const std::string &server_name)
|
||||
std::vector<LocalServiceInfo> get_server_services_info(const std::string &server_name, bool fast)
|
||||
{
|
||||
std::vector<LocalServiceInfo> services;
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace dropshell
|
||||
std::string dirname = entry.path().filename().string();
|
||||
if (dirname.empty() || dirname[0] == '.' || dirname[0] == '_')
|
||||
continue;
|
||||
auto service = get_service_info(server_name, dirname);
|
||||
auto service = get_service_info(server_name, dirname, fast);
|
||||
if (!service.local_service_path.empty())
|
||||
services.push_back(service);
|
||||
else
|
||||
@@ -73,7 +73,7 @@ namespace dropshell
|
||||
return it->second == "true";
|
||||
}
|
||||
|
||||
LocalServiceInfo get_service_info(const std::string &server_name, const std::string &service_name)
|
||||
LocalServiceInfo get_service_info(const std::string &server_name, const std::string &service_name, bool fast)
|
||||
{
|
||||
LocalServiceInfo service;
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace dropshell
|
||||
service.template_name = it->second;
|
||||
}
|
||||
|
||||
template_info tinfo = gTemplateManager().get_template_info(service.template_name);
|
||||
template_info tinfo = gTemplateManager().get_template_info(service.template_name,fast);
|
||||
if (!tinfo.is_set())
|
||||
{
|
||||
// Template not found - this means it's not available locally OR from registry
|
||||
|
||||
Reference in New Issue
Block a user