Commit 9c2bc25a authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Don't offer opening files in trash:/

I find it weird that when I've just trashed some files - presumably to get rid
of them - it then offers me to open that file or the trash folder once done.
parent 473a151f
......@@ -52,12 +52,16 @@ ColumnLayout {
// For a single file show actions for it
if (totalFiles === 1) {
return jobItem.jobDetails.descriptionUrl;
// Otherwise the destination folder all of them were copied into
} else {
return jobItem.jobDetails.destUrl;
const url = totalFiles === 1 ? jobItem.jobDetails.descriptionUrl
: jobItem.jobDetails.destUrl;
// Don't offer opening files in Trash
if (url && url.toString().startsWith("trash:")) {
return null;
return url;
property alias iconContainerItem: jobDragIcon.parent
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment