From 7762c7929e5837d0c3606c4cb2f0e53e5105991f Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 30 Apr 2025 19:38:15 +0800 Subject: [PATCH] Explictly add recursive & Fix build --- .../SettingPages/ViewModels/SettingsPaneAboutViewModel.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs index 652fc1ce5..374dcb3ad 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs @@ -187,7 +187,7 @@ public partial class SettingsPaneAboutViewModel : BaseModel try { // Log folders are the last level of folders - dir.Delete(false); + dir.Delete(recursive: false); } catch (Exception e) { @@ -239,7 +239,7 @@ public partial class SettingsPaneAboutViewModel : BaseModel try { // Plugin may create directories in its cache directory - dir.Delete(true); + dir.Delete(recursive: true); } catch (Exception e) { @@ -249,10 +249,11 @@ public partial class SettingsPaneAboutViewModel : BaseModel }); // Then, delete plugin directory + var dir = GetPluginCacheDir(); try { // Log folders are the last level of folders - GetPluginCacheDir().Delete(false); + dir.Delete(recursive: false); } catch (Exception e) {