Skip to content

fix(tray): scroll to top in the activity window on opening - #10533

Open
Rello wants to merge 1 commit into
masterfrom
bugfix/activityScroll
Open

fix(tray): scroll to top in the activity window on opening#10533
Rello wants to merge 1 commit into
masterfrom
bugfix/activityScroll

Conversation

@Rello

@Rello Rello commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator
  • reopening will ensure tha the list is scrolled to the top
  • before, the scroll location was memorized and and new notifications or conflicts were missed

Assisted-by: Codex:GPT-5

- reopening will ensure tha the list is scrolled to the top
- before, the scroll location was memorized and and new notifications or conflicts were missed

Assisted-by: Codex:GPT-5
Signed-off-by: Rello <github@scherello.de>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃挕 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 88ef7e23a1

鈩癸笍 About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 馃憤.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

minimumHeight: Style.wizardStandaloneWindowMinimumHeight

function resetActivityList() {
activityList.positionAtTop()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset already-visible activity windows on open

This reset only fires from Component.onCompleted or when visible changes. In the cached-window path of Systray::showActivitiesWindow(), the tray action calls show(), raise(), and requestActivate() on the existing QQuickWindow; when that window is already visible but behind another window, visible does not change, so the list keeps its old scroll offset and new items at the top can still be missed. Please trigger resetActivityList() from the existing-window open path or another activation hook rather than relying only on visibleChanged.

Useful? React with 馃憤聽/ 馃憥.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10533.zip

Digest: sha256:41a01de6e807995a98a9a923773405474c0943da6f503e87f6566001714aef0c

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@camilasan camilasan added this to the 34.0.2 milestone Aug 5, 2026
Comment on lines +1 to +10
/*
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: CC0-1.0
*
* This software is in the public domain, furnished "as is", without technical
* support, and with no warranty, express or implied, as to its usefulness for
* any purpose.
*/

#include "account.h"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid writing C++ QTests for QML components. The window should be testable using a QtQuick Test

https://doc.qt.io/qt-6/qtquicktest-index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants