Bug 435607

Summary: Switching source on Applications page sometimes makes Sources menu disappear, so you can't switch back
Product: [Applications] Discover Reporter: Felipe Kinoshita <kinofhek>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.21.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: video showing observed result

Description Felipe Kinoshita 2021-04-11 10:42:36 UTC
Created attachment 137503 [details]
video showing observed result

If you go to an app page (native package), on the toolbar there's "[Install] [Sources]" but if you select flatpak from that drop-down menu or if you entered the app page already as a flatpak you're unable to change sources.

But some apps can change source from flatpak to native package (attached video)

STEPS TO REPRODUCE
1. go to an app page (native package)
2. change sources to flatpak

1. go to an app page (flatpak package)

OBSERVED RESULT
Unable to change package source to native package.

EXPECTED RESULT
Should be able to change package source.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE
(available in About System)
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Not sure if it happens with snaps since I'm not using them.
Comment 1 Nate Graham 2021-04-13 15:20:54 UTC
This is actually an odd problem specific to the Godot Engine package on openSUSE Tumbleweed: Bug 433463.

*** This bug has been marked as a duplicate of bug 433463 ***
Comment 2 Felipe Kinoshita 2021-04-13 18:20:28 UTC
But the problem I'm talking about is Discover not being able to switch from flatpak page to native package page, it has nothing to do with the Godot bug.
Comment 3 Nate Graham 2021-04-13 18:33:43 UTC
I can reproduce the bug only for Godot Engine, and that's the app that your video shows as well. Are you able to reproduce the issue with other apps?
Comment 4 Felipe Kinoshita 2021-04-13 18:51:28 UTC
The bug I'm talking about is about no being able to switch from the flatpak page to native package page on some apps, I've only showed Godot because it's not affected by this bug apparently (Sorry if that's confusing)

e.g if you go to the "SpeedCrunch" page, you can change it's source to flatpak, but then the '[Source]' dropdown menu is not available on the flatpak page, some apps do allow me to switch back to the native package but some don't.

Some apps don't even show the '[Source]' dropdown menu even though they both are available on the list.
Comment 5 Nate Graham 2021-04-13 20:15:09 UTC
Oh I see. This is different indeed. I can reproduce with SpeedCrunch. As soon as I switch the source from Tumbleweed to Flatpak, the Sources menu disappears!
Comment 6 Nate Graham 2023-01-12 17:48:34 UTC
This was fixed a while ago. Works for SpeedCrunch now.