File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ private void InitDirectoryWatcher()
269269 _directoryWatcher . InternalBufferSize = 40960 ;
270270 _directoryWatcher . Created += ( sender , args ) => {
271271 var newFolder = new GameFolder ( args . FullPath , PauseToken ) ;
272+ if ( ! newFolder . IsJunction ) newFolder . IsBeingAccessed = true ;
272273 Folders . AddAsync ( newFolder ) . Forget ( ) ;
273274 } ;
274275 _directoryWatcher . Deleted += ( sender , args ) => {
@@ -348,6 +349,7 @@ public Task<GameFolder> CopyFolderAsync([NotNull] GameFolder folderToCopy)
348349 }
349350 else
350351 {
352+ overwrittenFolder . IsBeingAccessed = true ;
351353 // Since a new folder isn't being created the file system watcher will not trigger size recalculation, so we do it here
352354 overwrittenFolder . RecalculateSizeAsync ( ) . Forget ( ) ;
353355 }
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ private async Task SearchSubdirectoriesAsync(CancellationToken cancellationToken
119119 }
120120
121121 IsSizeOutdated = false ;
122+ IsBeingAccessed = false ;
122123 }
123124 catch ( IOException e )
124125 {
Original file line number Diff line number Diff line change 9494 Margin =" 0 32 0 0"
9595 HorizontalAlignment =" Center"
9696 Style =" {StaticResource RaisedAccentButton}"
97+ Click =" CloseRightDrawer"
9798 Command =" {Binding RefreshFolderSizesCommand}" />
9899 </StackPanel >
99100 </ScrollViewer >
You can’t perform that action at this time.
0 commit comments