Bug 510395

Summary: Discover refreshes sources unnecessarily even if Notifier tray icon just did it
Product: [Applications] Discover Reporter: indisputable <ovi.dev>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: aleixpol, nate, zilla
Priority: NOR Keywords: efficiency-and-performance, usability
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: system tray icon
discover page

Description indisputable 2025-10-08 15:39:26 UTC
Created attachment 185607 [details]
system tray icon

SUMMARY
When the system tray shows the “Updates available” icon and I click on it, Discover opens and starts “Fetching updates…”. Updates should already be pre-fetched at this point.

STEPS TO REPRODUCE
1. Wait until the system tray displays the “Updates available” icon.
2. Click the icon.
3. Observe that Discover opens and shows “Fetching updates…”.

OBSERVED RESULT
Discover starts fetching update information again, even though the tray icon already indicated that updates are available.

EXPECTED RESULT
1. When the tray icon “Updates available” appears, update data should already be fetched.
2. Clicking the icon should open Discover directly showing the available updates list.
3. User can choose to “Update All” or select individual updates immediately.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.10-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 indisputable 2025-10-08 15:39:47 UTC
Created attachment 185608 [details]
discover page
Comment 2 Nate Graham 2025-10-08 18:28:32 UTC
They were, but Discover has to check again just in case anything more came in since the time when the tray icon noticed updates, and the time when you click on it to launch Discover.

Ideally this second check should be super-fast, so you barely notice it. If it's not, that's the thing to focus on, and we have been focusing on it for a while now to increase the speed.
Comment 3 indisputable 2025-10-09 15:29:56 UTC
What if I click on the icon immediately? Like after system startup?
Comment 4 Nate Graham 2025-10-10 15:48:35 UTC
Yeah, in that case, probably Discover should not check again. Let's make the bug report about that.