preserve scroll position when toggling group collapse
This commit is contained in:
parent
0d62b62da0
commit
736a8126e4
1 changed files with 2 additions and 0 deletions
|
|
@ -71,12 +71,14 @@ M.HoverPanel {
|
|||
property var _collapsedGroups: ({})
|
||||
|
||||
function _toggleCollapse(appName) {
|
||||
const savedY = notifList.contentY;
|
||||
const next = Object.assign({}, _collapsedGroups);
|
||||
if (next[appName])
|
||||
delete next[appName];
|
||||
else
|
||||
next[appName] = true;
|
||||
_collapsedGroups = next;
|
||||
Qt.callLater(() => notifList.contentY = savedY);
|
||||
}
|
||||
|
||||
// Group notifications by appName, sorted by max urgency desc then most recent time desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue