mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(notifications): prevent expansion of non-expandable items in history
This commit is contained in:
@@ -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