mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3491 from Flow-Launcher/cache_folder
Add cache folder button in dev tools
This commit is contained in:
commit
9de0eb2a11
3 changed files with 13 additions and 0 deletions
|
|
@ -345,6 +345,7 @@
|
|||
<system:String x:Key="logfolder">Log Folder</system:String>
|
||||
<system:String x:Key="clearlogfolder">Clear Logs</system:String>
|
||||
<system:String x:Key="clearlogfolderMessage">Are you sure you want to delete all logs?</system:String>
|
||||
<system:String x:Key="cachefolder">Cache Folder</system:String>
|
||||
<system:String x:Key="clearcachefolder">Clear Caches</system:String>
|
||||
<system:String x:Key="clearcachefolderMessage">Are you sure you want to delete all caches?</system:String>
|
||||
<system:String x:Key="clearfolderfailMessage">Failed to clear part of folders and files. Please see log file for more information</system:String>
|
||||
|
|
|
|||
|
|
@ -144,6 +144,12 @@ public partial class SettingsPaneAboutViewModel : BaseModel
|
|||
App.API.OpenDirectory(parentFolderPath);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenCacheFolder()
|
||||
{
|
||||
App.API.OpenDirectory(DataLocation.CacheDirectory);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenLogsFolder()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -124,6 +124,12 @@
|
|||
<ui:FontIcon Glyph="" />
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
|
||||
<MenuItem Command="{Binding OpenCacheFolderCommand}" Header="{DynamicResource cachefolder}">
|
||||
<MenuItem.Icon>
|
||||
<ui:FontIcon Glyph="" />
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
</ui:MenuFlyout>
|
||||
</ui:FlyoutService.Flyout>
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue