1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

plugins: improve update/tooltips/UI

This commit is contained in:
bbedward
2025-10-22 09:42:55 -04:00
parent 479868718e
commit bd525763de
2 changed files with 94 additions and 3 deletions

View File

@@ -516,6 +516,19 @@ Singleton {
resyncDebounce.restart()
}
function forceRescanPlugin(pluginId) {
const plugin = availablePlugins[pluginId]
if (plugin && plugin.manifestPath) {
const manifestPath = plugin.manifestPath
const source = plugin.source || "user"
delete knownManifests[manifestPath]
const newMap = Object.assign({}, availablePlugins)
delete newMap[pluginId]
availablePlugins = newMap
loadPluginManifestFile(manifestPath, source, Date.now())
}
}
function createPluginDirectory() {
const mkdirProcess = Qt.createComponent("data:text/plain,import Quickshell.Io; Process { }")
if (mkdirProcess.status === Component.Ready) {