mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 23:17:51 -04:00
plugins: hide the list under the detail overlay
plugins: block activation when the startup check cannot run ref #3626
This commit is contained in:
1 parent
53b8de2714
commit
765ffe8564
7 files changed
+125
-95
No files matched your search
@@ -722,7 +722,7 @@ QtObject {
|
||||
}
|
||||
```
|
||||
|
||||
A synchronous variant is supported too - declare `check()` with no argument and return the result directly. When the check fails the enable toggle reverts and the error is shown as a toast (the `details` are expandable, and any `http(s)` URL in them becomes a clickable link). Plugins without a `startupCheck` are unaffected. See `ExampleStartupCheck` for a complete plugin; the last error per plugin is available at `PluginService.pluginLoadErrors[pluginId]`.
|
||||
A synchronous variant is supported too - declare `check()` with no argument and return the result directly. When the check fails the enable toggle reverts and the error is shown as a toast (the `details` are expandable, and any `http(s)` URL in them becomes a clickable link). A check that fails to load, has no `check` function, or throws blocks activation the same way, with its error as the message. The check also runs again on reload. Plugins without a `startupCheck` are unaffected. See `ExampleStartupCheck` for a complete plugin; the last error per plugin is available at `PluginService.pluginLoadErrors[pluginId]`.
|
||||
|
||||
## Plugin Global Variables
|
||||
|
||||
|
||||
Reference in new issue
Block a user