Files icon indicating copy to clipboard operation
Files copied to clipboard

Bug: Add a "library in use" dialog when trying to delete them

Open Josh65-2201 opened this issue 3 years ago • 1 comments

What's the Problem?

From the discord conversation a user tried to delete a library but it didnt work with no in app reason why.

Relevent error

2022-06-20 18:24:25.3125|WARN|HandleShellLibraryMessage|
	System.IO.FileLoadException: The process cannot access the file because it is being used by another process. (0x80070020)
   at Vanara.PInvoke.Shell32.IShellLibrary.LoadLibraryFromItem(IShellItem library, STGM grfMode)
   at Files.FullTrust.MessageHandlers.LibrariesHandler.<>c__DisplayClass6_0.<HandleShellLibraryMessage>b__2()

Solution/Idea

Add "This libary is in use by " dialog. If its able to get the process using it.

Alternatives

Priorities

No response

Files Version

2.3.11.0

Windows Version

10.0.19043.1889

Comments

No response

Josh65-2201 avatar Jun 20 '22 22:06 Josh65-2201

Asking @yaichenbaum for approval.

Josh65-2201 avatar Jul 15 '22 15:07 Josh65-2201