mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 23:34:01 -04:00
scrollbar: interface style toggle and no scrollbars in the dash dash: never allow scrollbars cc: widget sheet cards, header close button and content-sized dialogs
23 lines
912 B
QML
23 lines
912 B
QML
import QtQuick
|
|
import qs.Common
|
|
|
|
QtObject {
|
|
// Optional async dependency gate. Receives a done(result) callback:
|
|
// done(null) -> allow activation
|
|
// done("short message") -> block with a title only
|
|
// done({ title, details }) -> block with an expandable details body
|
|
// A synchronous variant (no argument, return the result) is also supported.
|
|
function check(done) {
|
|
Proc.runCommand("exampleStartupCheck.depCheck", ["sh", "-c", "command -v boregard"], (stdout, exitCode) => {
|
|
if (exitCode === 0) {
|
|
done(null);
|
|
return;
|
|
}
|
|
done({
|
|
"title": "boregard is required",
|
|
"details": "The 'boregard' tool is not installed or not on your PATH.\n\nInstall it from " + Site.web + ", then re-enable this plugin."
|
|
});
|
|
});
|
|
}
|
|
}
|