forked from quickshell/quickshell
service/tray: always mark the root menu item as having children
Blueman doesn't for some reason. This causes PlatformMenuEntry::display to crash after ::relayout created a QAction instead of a QMenu. Fixes #5
This commit is contained in:
parent
84e3f04f3c
commit
08966f91c5
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ void DBusMenuItem::updateLayout() const {
|
|||
this->menu->updateLayout(this->id, -1);
|
||||
}
|
||||
|
||||
bool DBusMenuItem::hasChildren() const { return this->displayChildren; }
|
||||
bool DBusMenuItem::hasChildren() const { return this->displayChildren || this->id == 0; }
|
||||
|
||||
QQmlListProperty<QsMenuEntry> DBusMenuItem::children() {
|
||||
return QQmlListProperty<QsMenuEntry>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue