summaryrefslogtreecommitdiff
path: root/library/lock_holder.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/lock_holder.h')
-rw-r--r--library/lock_holder.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/library/lock_holder.h b/library/lock_holder.h
index 172209dc..65471d5f 100644
--- a/library/lock_holder.h
+++ b/library/lock_holder.h
@@ -17,8 +17,14 @@ class LockHolder
public:
void addDir(const Zstring& dirnameFmt, ProcessCallback& procCallback) //resolved dirname ending with path separator
{
- if (dirnameFmt.empty() ||
- !dirExistsUpdating(dirnameFmt, procCallback))
+ if (dirnameFmt.empty())
+ return;
+
+ std::wstring statusText = _("Searching for directory %x...");
+ replace(statusText, L"%x", std::wstring(L"\"") + dirnameFmt + L"\"", false);
+ procCallback.reportInfo(statusText);
+
+ if (!dirExistsUpdating(dirnameFmt, procCallback))
return;
if (lockHolder.find(dirnameFmt) != lockHolder.end()) return;
bgstack15