From ba18755b6b9c4d7b2a261aebdf7f99fc5c0a0310 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 28 Apr 2025 10:55:19 +0800 Subject: [PATCH] Add cache folder button in dev tools --- Flow.Launcher/Languages/en.xaml | 1 + .../SettingPages/ViewModels/SettingsPaneAboutViewModel.cs | 6 ++++++ Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 72897521b6d..d3252cb314c 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -345,6 +345,7 @@ Log Folder Clear Logs Are you sure you want to delete all logs? + Cache Folder Clear Caches Are you sure you want to delete all caches? Failed to clear part of folders and files. Please see log file for more information diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs index acffe1e85af..231d14d5551 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs @@ -144,6 +144,12 @@ private void OpenParentOfSettingsFolder(object parameter) App.API.OpenDirectory(parentFolderPath); } + [RelayCommand] + private void OpenCacheFolder() + { + App.API.OpenDirectory(DataLocation.CacheDirectory); + } + [RelayCommand] private void OpenLogsFolder() { diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml b/Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml index 1a92ad0c24a..aa750cf86e8 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml @@ -124,6 +124,12 @@ + + + + + +