We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f97a200 commit dcb877cCopy full SHA for dcb877c
src/Files/Helpers/JumpListManager.cs
@@ -132,12 +132,16 @@ public async void RemoveFolder(string path)
132
// In that case app should just catch the error and proceed as usual
133
try
134
{
135
- if (instance != null)
+ if (instance == null)
136
137
- if (JumpListItemPaths.Remove(path))
138
- {
139
- await instance.SaveAsync();
140
- }
+ return;
+ }
+
+ if (JumpListItemPaths.Remove(path))
141
+ {
142
+ var itemToRemove = instance.Items.Where(x => x.Arguments == path).Select(x => x).FirstOrDefault();
143
+ instance.Items.Remove(itemToRemove);
144
+ await instance.SaveAsync();
145
}
146
147
catch { }
0 commit comments