Skip to content

Commit 7762c79

Browse files
committed
Explictly add recursive & Fix build
1 parent c9e85a1 commit 7762c79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private bool ClearLogFolder()
187187
try
188188
{
189189
// Log folders are the last level of folders
190-
dir.Delete(false);
190+
dir.Delete(recursive: false);
191191
}
192192
catch (Exception e)
193193
{
@@ -239,7 +239,7 @@ private bool ClearCacheFolder()
239239
try
240240
{
241241
// Plugin may create directories in its cache directory
242-
dir.Delete(true);
242+
dir.Delete(recursive: true);
243243
}
244244
catch (Exception e)
245245
{
@@ -249,10 +249,11 @@ private bool ClearCacheFolder()
249249
});
250250

251251
// Then, delete plugin directory
252+
var dir = GetPluginCacheDir();
252253
try
253254
{
254255
// Log folders are the last level of folders
255-
GetPluginCacheDir().Delete(false);
256+
dir.Delete(recursive: false);
256257
}
257258
catch (Exception e)
258259
{

0 commit comments

Comments
 (0)