Skip to content

[manager] remove unneeded freeze/thaw when updating notification windows, instead to the refresh.#6495

Merged
AenBleidd merged 1 commit intomasterfrom
vko_fix_notices_ui_issue
Aug 16, 2025
Merged

[manager] remove unneeded freeze/thaw when updating notification windows, instead to the refresh.#6495
AenBleidd merged 1 commit intomasterfrom
vko_fix_notices_ui_issue

Conversation

@AenBleidd
Copy link
Member

This fixes #6490.

…ows, instead to the refresh.

This fixes #6490.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@AenBleidd AenBleidd added this to the Client/Manager 8.2.6 milestone Aug 16, 2025
Copilot AI review requested due to automatic review settings August 16, 2025 02:36
@github-project-automation github-project-automation bot moved this to In progress in Client/Manager Aug 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes unnecessary UI freeze/thaw operations when updating notification windows and replaces them with a single refresh call to improve performance and fix issue #6490.

  • Removes Freeze() and Thaw() calls around notification list updates
  • Adds a Refresh() call to ensure the UI is properly updated

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Freeze();
SetItemCount(noticeCount);
m_bDisplayFetchingNotices = false;
m_bDisplayEmptyNotice = false;
Copy link

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

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

Consider moving the Refresh() call after all member variable updates are complete. Currently, Refresh() is called immediately after SetItemCount() but before updating the display flags, which could cause an unnecessary intermediate redraw.

Suggested change
m_bDisplayEmptyNotice = false;
m_bDisplayEmptyNotice = false;

Copilot uses AI. Check for mistakes.
@AenBleidd AenBleidd merged commit 1d1ac4a into master Aug 16, 2025
299 of 300 checks passed
@AenBleidd AenBleidd deleted the vko_fix_notices_ui_issue branch August 16, 2025 03:09
@github-project-automation github-project-automation bot moved this from In progress to Merged in Client/Manager Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

manager: display glitch in Notices tab

2 participants