Skip to content

Commit 1073821

Browse files
committed
Improve recyble bin clear issue noticification
1 parent 9fb0233 commit 1073821

File tree

1 file changed

+4
-2
lines changed
  • Plugins/Flow.Launcher.Plugin.Sys

1 file changed

+4
-2
lines changed

Plugins/Flow.Launcher.Plugin.Sys/Main.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ private List<Result> Commands()
252252
var result = PInvoke.SHEmptyRecycleBin(new(), string.Empty, 0);
253253
if (result != HRESULT.S_OK && result != HRESULT.E_UNEXPECTED)
254254
{
255-
context.API.ShowMsgBox($"Error emptying recycle bin, error code: {result}\n" +
256-
"please refer to https://msdn.microsoft.com/en-us/library/windows/desktop/aa378137",
255+
context.API.ShowMsgBox("Failed to empty the recycle bin. This might happen if:\n" +
256+
"- A file in the recycle bin is in use\n" +
257+
"- You don't have permission to delete some items\n" +
258+
"Please close any applications that might be using these files and try again.",
257259
"Error",
258260
MessageBoxButton.OK, MessageBoxImage.Error);
259261
}

0 commit comments

Comments
 (0)