mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-11 16:22:09 -04:00
settings: add IPCs to open specific settings tabs
This commit is contained in:
@@ -11,7 +11,17 @@ Item {
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
const windowContentItem = item.Window.window?.contentItem;
|
||||
let windowContentItem = item.Window?.window?.contentItem;
|
||||
if (!windowContentItem) {
|
||||
let current = item;
|
||||
while (current) {
|
||||
if (current.Window?.window?.contentItem) {
|
||||
windowContentItem = current.Window.window.contentItem;
|
||||
break;
|
||||
}
|
||||
current = current.parent;
|
||||
}
|
||||
}
|
||||
if (!windowContentItem)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user