mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 21:20:28 +12:00
ExpandFolderVariables in Watch folder path
This commit is contained in:
parent
1a6ebc97bf
commit
4f2ac5e84f
|
@ -53,7 +53,7 @@ public virtual void Enable()
|
||||||
{
|
{
|
||||||
context = SynchronizationContext.Current ?? new SynchronizationContext();
|
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;
|
if (!string.IsNullOrEmpty(Settings.Filter)) fileWatcher.Filter = Settings.Filter;
|
||||||
fileWatcher.IncludeSubdirectories = Settings.IncludeSubdirectories;
|
fileWatcher.IncludeSubdirectories = Settings.IncludeSubdirectories;
|
||||||
fileWatcher.Created += fileWatcher_Created;
|
fileWatcher.Created += fileWatcher_Created;
|
||||||
|
|
Loading…
Reference in a new issue