]> cloud.milkyroute.net Git - dolphin.git/commit
Stop acting as admin when the authorization expires
authorFelix Ernst <felixernst@kde.org>
Sat, 13 Jul 2024 15:37:31 +0000 (15:37 +0000)
committerFelix Ernst <felixernst@kde.org>
Sat, 13 Jul 2024 15:37:31 +0000 (15:37 +0000)
commit19fdc5b67990bb75009a1fc511619bd449d559d7
tree846b3d1392fc94ed1e9530458bad046c706be1ad
parent8271df42bda9284012ebc05f7edbd0689c07f6a1
Stop acting as admin when the authorization expires

Previously, the authorization just silently expired without any
visible change. The surprise only came when the user tried to do
any action, which immediately would show a password prompt. We
don't want users to randomly type passwords into password
prompts unexpectedly showing up. This commit avoids that.

With this change, the view container visibly de-escalates
privileges and shows a message explaining what happened.

A method was implemented in kio-admin to make this possible. See:
https://commits.kde.org/kio-admin/a2da29289d12ef845e2c1da17ed04c59f1c47762

This commit also improves some logic around the responsibility
of hiding bars and activating view containers.

This is also part of my project funded by the European Commission.
src/admin/bar.cpp
src/admin/bar.h
src/admin/workerintegration.cpp
src/admin/workerintegration.h
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h