Bug 497697 - Ignore repeated clicks in the sidebar
Summary: Ignore repeated clicks in the sidebar
Status: CONFIRMED
Alias: None
Product: Tokodon
Classification: Applications
Component: general (show other bugs)
Version: 24.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-19 22:06 UTC by Ilya Bizyaev
Modified: 2025-01-20 01:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2024-12-19 22:06:53 UTC
SUMMARY
It's a general problem that I observe when using the app:

OBSERVED RESULT
* Clicking your name in the sidebar while already on your profile page pushes it to the page stack again.
* Clicking "Preferences" in the sidebar multiple times opens the settings window repeatedly.

EXPECTED RESULT
* Clicking the name while on the profile page does nothing since it's already active.
* The settings dialog can only be opened once and gains focus on repeated attempts.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241217
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.11.8-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2025-01-20 00:58:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/694
Comment 2 Joshua Goins 2025-01-20 01:07:45 UTC
Git commit c695be31b1f42be8dae7b426ad43067ed4dc8511 by Joshua Goins.
Committed on 20/01/2025 at 01:07.
Pushed by redstrate into branch 'master'.

Don't reload the current page when clicking on it in the navigation

Previously if you clicked on a page in the navigation - e.g "Home" -
then Tokodon would load the *whole* page again. Not only is this super
wasteful, but it's also a performance drain and bad UX.

Instead, don't allow reloading to the *same* page you were already on.
And start making a repeated tap do something better. Right now
for example tapping on Home again will just return you to the top.

M  +58   -19   src/content/ui/Main.qml
M  +4    -0    src/content/ui/TimelinePage.qml

https://invent.kde.org/network/tokodon/-/commit/c695be31b1f42be8dae7b426ad43067ed4dc8511