https://bugs.kde.org/show_bug.cgi?id=495494

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |6.4.0
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/9abfdd2640bc83608e347e218
                   |                            |0cd30198001cb64
         Resolution|---                         |FIXED

--- Comment #3 from Nate Graham <n...@kde.org> ---
Git commit 9abfdd2640bc83608e347e2180cd30198001cb64 by Nate Graham.
Committed on 22/04/2025 at 20:48.
Pushed by ngraham into branch 'master'.

kcm/users: refine "deleting logged-in user" UX

Right now there are two problems:
1. Deleting a logged-in user shows no warning about this.
2. Asking to delete the files of a logged-in user fails silently
   (AccountsService simply won't do it).

This commit solves both problems: now the user sees a warning dialog
when they try to delete another logged-in user, and it also prevents
them from trying to delete a logged-in user's files, instead redirecting
them to just delete the account but not the files.

To achieve this, I needed to change what the `loggedIn` property does,
because previously it was inaccurate, returning whether the queried user
is the currently logged-in user. Now it returns whether the quaried user
is logged in, and I added a new `isMe` property to hold whether the
queried user is the currently logged-in user.
FIXED-IN: 6.4.0

M  +1    -0    kcms/users/src/CMakeLists.txt
M  +40   -6    kcms/users/src/ui/UserDetailsPage.qml
M  +1    -1    kcms/users/src/ui/main.qml
M  +22   -4    kcms/users/src/user.cpp
M  +6    -1    kcms/users/src/user.h
M  +7    -4    kcms/users/src/usermodel.cpp
M  +2    -1    kcms/users/src/usermodel.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/9abfdd2640bc83608e347e2180cd30198001cb64

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to