Fix cache bug

This commit is contained in:
Kyrill Zorin
2025-08-12 00:15:43 +01:00
parent 16e16c11ce
commit f788b04245
2 changed files with 2 additions and 0 deletions

View File

@@ -155,6 +155,7 @@ export default class DashToPanelExtension extends Extension {
PanelSettings.disable(SETTINGS)
panelManager.disable()
PanelSettings.clearCache()
DTP_EXTENSION = null
SETTINGS = null

View File

@@ -46,6 +46,7 @@ export var availableMonitors = []
export async function init(settings) {
useCache = true
cache = {}
prefsOpenedId = settings.connect(
'changed::prefs-opened',
() => (useCache = !settings.get_boolean('prefs-opened')),