1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-24 20:15:21 -04:00

plugins: add startupCheck function

This commit is contained in:
bbedward
2026-06-23 22:11:51 -04:00
parent 99cc3b8449
commit 8b94b149b2
9 changed files with 269 additions and 19 deletions
@@ -316,11 +316,10 @@ StyledRect {
const currentPluginName = root.pluginName;
if (isChecked) {
if (PluginService.enablePlugin(currentPluginId)) {
ToastService.showInfo(I18n.tr("Plugin enabled: %1").arg(currentPluginName));
return;
}
ToastService.showError(I18n.tr("Failed to enable plugin: %1").arg(currentPluginName));
PluginService.enablePlugin(currentPluginId, ok => {
if (ok)
ToastService.showInfo(I18n.tr("Plugin enabled: %1").arg(currentPluginName));
});
return;
}
if (PluginService.disablePlugin(currentPluginId)) {