Skip to content

Commit 8ea304b

Browse files
authored
Update WindowsRecentItemsService.cs
1 parent 968d8ee commit 8ea304b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Files.App/Services/Windows/WindowsRecentItemsService.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ public unsafe bool Remove(RecentItem item)
136136
cmi.lpVerb = new(pVerb1);
137137
hr = pContextMenu.Get()->InvokeCommand(cmi);
138138
if (hr == HRESULT.S_OK)
139-
return;
139+
return true;
140140

141141
// Try unpin folders
142142
cmi.lpVerb = new(pVerb2);
143143
hr = pContextMenu.Get()->InvokeCommand(cmi);
144144
if (hr == HRESULT.S_OK)
145-
return;
145+
return true;
146146

147147
// NOTE:
148148
// There seems to be an issue with unpinfromhome where some shell folders
@@ -151,7 +151,7 @@ public unsafe bool Remove(RecentItem item)
151151
cmi.lpVerb = new(pVerb3);
152152
hr = pContextMenu.Get()->InvokeCommand(cmi);
153153
if (hr == HRESULT.S_OK)
154-
return;
154+
return true;
155155
}
156156

157157
return true;

0 commit comments

Comments
 (0)