mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 09:36:46 +00:00
28 lines
796 B
QML
28 lines
796 B
QML
import QtQuick
|
|
import Quickshell
|
|
import qs.config
|
|
|
|
Item {
|
|
Repeater {
|
|
model: PluginLoader.plugins
|
|
|
|
delegate: Item {
|
|
width: 0
|
|
height: 0
|
|
|
|
LazyLoader {
|
|
id: pluginLoader
|
|
active: Config.initialized
|
|
&& Config.runtime
|
|
&& Config.runtime.plugins
|
|
&& Config.runtime.plugins[modelData]
|
|
&& Config.runtime.plugins[modelData].enabled === true // Long ass binding to guard object existence
|
|
source: Qt.resolvedUrl(
|
|
Directories.shellConfig + "/plugins/" + modelData + "/Main.qml"
|
|
)
|
|
loading: true // optional, keeps plugin loaded
|
|
}
|
|
}
|
|
}
|
|
}
|