add button to Advanced settings tab to clear caches

This commit is contained in:
Drew Weymouth
2025-11-07 19:48:09 -08:00
parent 360391e832
commit 0ff57513c2
6 changed files with 34 additions and 5 deletions
+1
View File
@@ -347,6 +347,7 @@ func (c *Controller) ShowSettingsDialog(themeUpdateCallbk func(), themeFiles map
c.App.LocalPlayer.SetEqualizer(eq)
}
dlg.OnPageNeedsRefresh = c.RefreshPageFunc
dlg.OnClearCaches = func() { go c.App.ClearCaches() }
pop := widget.NewModalPopUp(dlg, c.MainWindow.Canvas())
fynetooltip.AddPopUpToolTipLayer(pop)
dlg.OnDismiss = func() {