mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge branch 'main' into niri-blur
This commit is contained in:
@@ -7,3 +7,4 @@ RELEASE.md
|
||||
__pycache__
|
||||
result
|
||||
build
|
||||
/debian/
|
||||
|
||||
@@ -172,10 +172,12 @@ SmartPanel {
|
||||
NotificationService.invokeAction(item.id, actions[actionIndex].identifier);
|
||||
}
|
||||
} else {
|
||||
// Toggle expansion or open?
|
||||
// User request didn't specify. Let's toggle expansion logic if we can access it.
|
||||
// We can communicate with the delegate via a property or signal?
|
||||
// Delegates read 'scrollView.expandedId'.
|
||||
var delegate = notificationColumn.children[focusIndex];
|
||||
if (!delegate)
|
||||
return;
|
||||
if (!(delegate.canExpand || delegate.isExpanded))
|
||||
return;
|
||||
|
||||
if (scrollView.expandedId === item.id) {
|
||||
scrollView.expandedId = "";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user