Skip to content

Commit 3bce318

Browse files
committed
Auto select "Watch Folder for changes" if the folder is currently in the watch list
1 parent 273afe8 commit 3bce318

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CompactGUI/ViewModels/HomeViewModel.vb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ Partial Public Class HomeViewModel
110110
If TypeOf (newFolder) Is SteamFolder Then
111111
Await CType(newFolder, SteamFolder).GetWikiResults()
112112
End If
113+
114+
If Application.GetService(Of Watcher.Watcher).WatchedFolders.Any(Function(w) w.Folder = newFolder.FolderName) Then
115+
newFolder.CompressionOptions.WatchFolderForChanges = True
116+
End If
117+
118+
119+
113120
Next
114121

115122

0 commit comments

Comments
 (0)