Commit 9eb6e160 authored by Zren (Chris Holland)'s avatar Zren (Chris Holland)
Browse files

[scripting] Make panels() not return the desktops() containments

It was filtering by isPanel() before port to QJSEngine:
033ad5ca

BUG: 435081
parent 23e5aaa3
......@@ -485,8 +485,10 @@ QJSValue ScriptEngine::V1::panels() const
const auto result = m_engine->m_corona->containments();
for (const auto c : result) {
panels.setProperty(count, m_engine->wrap(c));
++count;
if (isPanel(c)) {
panels.setProperty(count, m_engine->wrap(c));
++count;
}
}
panels.setProperty(QStringLiteral("length"), count);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment