1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00
Commit Graph

7206 Commits

Author SHA1 Message Date
Zakhar Afonin
9aaf305410 Some code cleanup as per suggestions 2024-06-22 12:31:29 +03:00
Zakhar Afonin
27ca9bd64e Minor fix on sizeRoleGroup and directories 2024-06-18 00:07:47 +03:00
Zakhar Afonin
e7804cff52 Fixed crashing when initial grouping is by size. Fixed size grouping ignoring directory size. 2024-06-18 00:03:51 +03:00
Zakhar Afonin
6f6f080bb8 "Group by - Type" now respects "Folders first" setting. Minor code cleanup 2024-06-17 13:04:16 +03:00
Zakhar Afonin
8d30497f71 Fix for necessary roles not being fetched before grouping. Visual polish 2024-06-17 12:09:21 +03:00
Zakhar Afonin
187933a7a6 Fixed crash on text/text sorting/grouping. Missed a collatorLock :/ 2024-06-17 00:42:46 +03:00
Zakhar Afonin
91273c8b03 Implemented the possibility for sorting/grouping behaviors that are not tied to roles. Reintroducedd the original grouping as one of grouping options. 2024-06-16 18:49:09 +03:00
Zakhar Afonin
e9b056dcf0 Fixed grouping again, implemented permission and rating grouping. 2024-06-16 14:27:11 +03:00
Zakhar Afonin
38d293ae41 Implemented ItemGroupInfo in place of QVariant in roleRoleGroup functions 2024-06-16 13:02:24 +03:00
Zakhar Afonin
3e4392bed8 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Méven Car <meven@kde.org>
2024-06-15 13:55:01 +00:00
Zakhar Afonin
1682358bea Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Méven Car <meven@kde.org>
2024-06-15 13:54:42 +00:00
Zakhar Afonin
f2474c344a Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Méven Car <meven@kde.org>
2024-06-15 13:44:16 +00:00
Zakhar Afonin
b5eea6e5c5 Reverted resortAllItems() in favor of a group comparator for lessThan. Minor bug fixes 2024-06-13 09:33:52 +03:00
Zakhar Afonin
cdccbf471a "Group by" exists, group sorting rule is separate from sorting rule. Very WIP and buggy 2024-06-09 22:40:26 +03:00
l10n daemon script
d06cd8effe GIT_SILENT made messages (after extraction) 2024-06-06 00:41:07 +00:00
l10n daemon script
035d5b64e1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-31 01:20:40 +00:00
Nicolas Fella
0a8f84a52d Offer installing Filelight if no disk usage analyzer was found
This avoids an empty menu and points the user towards a useful tool

BUG: 477739
2024-05-30 15:21:39 +00:00
l10n daemon script
4f2fd50049 GIT_SILENT made messages (after extraction) 2024-05-28 00:40:16 +00:00
l10n daemon script
c0b6048af4 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-27 01:17:13 +00:00
l10n daemon script
34eb94366e SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-26 01:17:41 +00:00
Volker Krause
047769a5fa Explicitly link against Qt::DBus
That's used here and on Windows is no longer implicitly provided by KF.
2024-05-25 09:58:24 +02:00
l10n daemon script
3fad514921 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-25 01:19:17 +00:00
Ahmet Hakan Çelik
d448f4f35d Add "Move to New Folder…" action
This commit introduces an action which creates a new folder with a name
specified by the user and moves all the currently selected items there
in one go.

This action is implemented as a KFileItemActionPlugin which means users
can disable it on Dolphin's context menu settings page.

BUG: 484555
2024-05-23 13:25:03 +00:00
Tomáš Hnyk
35f999f391 Use m-dash instead of a hyphen 2024-05-23 11:14:06 +00:00
Schrijvers Luc
2638402bca Haiku build fixes
Co-authored-by: Gerasim Troeglazov <3dEyes@gmail.com>
2024-05-21 11:00:41 +00:00
l10n daemon script
3a8f8eaf6f GIT_SILENT made messages (after extraction) 2024-05-21 00:41:17 +00:00
Felix Ernst
ba8a49bcc4 Add label to button for closing the admin bar
The exact effect of the button is not perfectly clear without a
label because it could theoretically also have no effect other than
dismissing the bar (which is not the case). This situation is
clarified through this added label.

The tooltip of the button is adapted to complement the new button
label.
2024-05-20 16:52:57 +00:00
Felix Ernst
122fee5625 Avoid implicitly selecting items
Items should only be selected if the user wants to act on them.
However, previous to this commit we sometimes selected items even
when there is no reason to assume that the user would like to act
on them. Such selections are dangerous because they make it more
likely that the user manipulates items by accident which they
never even explicitly selected.

Example: The "Up" action is used to navigate to the parent folder.
This will implicitly select the folder one emerged from after
opening the parent folder, so just one accidental press of the
Delete key will lead to data loss if the press goes unnoticed. This
scenario would have been avoided if no folder had been selected
automatically.

The above example becomes even more dangerous if the user is acting
with elevated privileges.

The following implicit selections of items are being removed:
- Selecting items that are being activated
- Selecting folders one emerges from

Even though these items will no longer be selected after these
actions, they will still be marked as current.

The only downside I see is that our indication of which item is "current" is a lot weaker than the selection highlight, so it might be more difficult to spot which folder one has emerged from. However, this could be counter-acted with some other temporary indication if this really turns out to be a problem.

The only downside I see is that our indication of which item is
"current" is a lot weaker than the selection highlight, so it might be
more difficult to spot which folder one has emerged from. However, this
could be counter-acted with some other temporary indication if this
really turns out to be a problem.

BUG: 424723
2024-05-18 22:18:14 +00:00
l10n daemon script
2e59e39127 GIT_SILENT made messages (after extraction) 2024-05-17 00:40:55 +00:00
Heiko Becker
3acf34ed9f GIT_SILENT Update Appstream for new release
(cherry picked from commit 3e59d49a48)
2024-05-17 00:02:52 +02:00
l10n daemon script
2c620b4efb GIT_SILENT made messages (after extraction) 2024-05-16 00:40:44 +00:00
l10n daemon script
d7e61ff5c7 GIT_SILENT made messages (after extraction) 2024-05-14 00:40:34 +00:00
Jin Liu
046b41666a UrlNavigator: show a "lock" icon after the breadcrumb for read-only dir 2024-05-13 11:01:17 +00:00
Christoph Cullmann
a55c467fbb use proper icon set and style outside of Plasma
the framework functions used will setup the proper
icon set and re-coloring and style to use

details see

https://invent.kde.org/frameworks/kiconthemes/-/issues/3
2024-05-13 09:58:10 +00:00
Sergey Katunin
cb75b5a7de previews: Add EnableRemoteFolderThumbnail option
This option allows to enable preview for locally mounted remote folders

Setting was added in kio: frameworks/kio/#c7d6ff8f218a0c063f762bd236453a7ae00b817e
2024-05-13 09:54:29 +00:00
Felix Ernst
6c60655ce2 Add "Act as Administrator" toggle action
This commit adds an "Act as Administrator" toggle action to the
View menu if kio-admin is installed. The action allows switching
between acting as an admin with root-access or not.

This was already possible in Dolphin when kio-admin is installed by
editing the location bar directly. However this is somewhat
unintuitive and there are no warnings at all about the dangers of
acting as an administrator.

This commit adds a warning dialog when triggering the action. It is
somewhat explicit about the risks because this is in fact very
dangerous.

Furthermore, while acting on a view with administrative privileges,
a bar above the view shows up that contains a warning. The bar can
be closed to stop acting with elevated privileges.

The warning dialog can be disabled and re-enabled from the Dolphin
settings but only if the action is even available.

There is a lot more to be done to further improve this feature both
security-wise as well as when it comes to usability. But
considering that we are already encouraging users to use this
feature without any warnings at all, I feel like now is a good time
to merge this.

This work is part of a project funded through the NGI0 Entrust
Fund, a fund established by NLnet with financial support from the
European Commission's Next Generation Internet programme, under the
aegis of DG Communications Networks, Content and Technology. As
such, please contact me if you plan on doing related work so what
you are doing doesn't collide with work I am being funded to do.
2024-05-11 17:16:35 +00:00
Akseli Lahtinen
742566eb69 Check if namejob is already being run before opening new createDirectory dialog
This is a fix for a bug where in network views (or otherwise slow
systems), pressing `Ctrl+Shift+N` multiple times opens multiple popup
windows and thus causes a crash when any of the popups is interacted
with after closing the topmost one. The problem is not the crash with
popups themselves, but that we're opening multiple popups in the first
place.

In regular views this works fine, since the `nameJob` does not take
long time at all and only one popup opens, immediately blocking the
shortcut.

In network views, the `nameJob` seems to take a while to run, since it
is loading info from network. If user spams `Ctrl+Shift+N` shortcut in
frustration, it starts more `nameJob`s and eventually when those jobs
are done, it opens multiple popups.

This code checks that if we're already running a `namejob`, we're very
likely waiting for the `createDir` popup to appear, so we don't do
anything until there is no more `nameJob` running. 

I've tested that it works in both network and regular Dolphin views.

BUG:481401
2024-05-11 15:59:03 +00:00
George Florea Bănuș
65d7ef184a view: Add setting to trigger user set action with double click
Default action is select-all.
2024-05-08 08:11:56 +00:00
Méven Car
2c5e15aa5a settings: use QFormLayout for confirmation tab
For consistency.
2024-05-07 18:49:43 +02:00
Anthony Fieroni
67de3b7344 DolphinView: Update selection on newly created item(s)
Adjust paste to url to new KF6 signals

BUG: 476670

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2024-05-04 07:58:47 +00:00
Carl Schwan
41df5fa026
Fix usage of ecm_add_app_icon
The DESTINATION and THEME arguments are non existent and as such this
breaks the macOS builds and create warnings for the other platforms.
2024-04-30 11:20:37 +02:00
l10n daemon script
ca78971140 GIT_SILENT made messages (after extraction) 2024-04-24 00:41:05 +00:00
l10n daemon script
c556aed545 GIT_SILENT made messages (after extraction) 2024-04-22 00:40:16 +00:00
l10n daemon script
2f2681f464 GIT_SILENT made messages (after extraction) 2024-04-19 00:40:32 +00:00
Felix Ernst
57f45004cf Add branding colors for Flathub
This is needed or they definitely won't feature us.

The light blue color is chosen because it is vibrant and fits the
association with "Dolphin". The very dark color is chosen to still have
a good contrast with the Dolphin icon even though it is already quite
dark at the top left corner.

For more information see:
https://docs.flathub.org/blog/introducing-app-brand-colors/
2024-04-18 10:28:28 +00:00
Felix Ernst
a07f24228a Fix crash while entering selection mode with Qt6.7
`deleteLater()` on a non-existing object seems to cause a crash with
Qt6.7. This makes some sense but wasn't the case previously.

I didn't test this yet but it is a harmless change so if anyone can confirm we can IMO merge directly.

This was brought up in https://invent.kde.org/system/dolphin/-/merge_requests/764#note_920935, reported in the bug linked below, and the sentry crash reporting page also has a few dozen reports (https://crash-reports.kde.org/organizations/kde/issues/13589/?project=4&query=is%3Aunresolved&referrer=issue-stream&stream_index=1).

Dolphin 24.02 is also affected but we are already past the last bug fix release for it.

BUG: 485599
2024-04-17 07:32:27 +00:00
l10n daemon script
4320310b9b GIT_SILENT made messages (after extraction) 2024-04-17 00:40:26 +00:00
l10n daemon script
a9b94d3469 GIT_SILENT made messages (after extraction) 2024-04-16 00:40:25 +00:00
l10n daemon script
7d6f82b8ab GIT_SILENT made messages (after extraction) 2024-04-15 00:40:15 +00:00
l10n daemon script
d8987d3d62 GIT_SILENT made messages (after extraction) 2024-04-14 00:40:15 +00:00