mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
ExpandFolderVariables in Watch folder path
This commit is contained in:
parent
1a6ebc97bf
commit
4f2ac5e84f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ public virtual void Enable()
|
|||
{
|
||||
context = SynchronizationContext.Current ?? new SynchronizationContext();
|
||||
|
||||
fileWatcher = new FileSystemWatcher(Settings.FolderPath);
|
||||
fileWatcher = new FileSystemWatcher(Helpers.ExpandFolderVariables(Settings.FolderPath));
|
||||
if (!string.IsNullOrEmpty(Settings.Filter)) fileWatcher.Filter = Settings.Filter;
|
||||
fileWatcher.IncludeSubdirectories = Settings.IncludeSubdirectories;
|
||||
fileWatcher.Created += fileWatcher_Created;
|
||||
|
|
Loading…
Reference in a new issue