Suppress LocalSend's redundant tray item (#6852)

LocalSend registers an Ayatana item with no ItemIsMenu and no Activate
handler, so its primary click is a silent no-op and the menu offers only
Open and Quit. Share > Receive already opens it, so drop the item the way
Dropbox's is dropped when its dedicated widget owns the surface.

Closes #6838

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-08-14 08:23:45 +02:00
committed by GitHub
co-authored by Claude Opus 5
parent df708831b6
commit dc698e5df0
3 changed files with 23 additions and 17 deletions
+3 -3
View File
@@ -159,9 +159,9 @@ BarWidget {
return "drawer"
}
function ownedByDedicatedWidget(item) {
function ownedByOmarchy(item) {
var layout = root.bar && root.bar.layoutConfig ? root.bar.layoutConfig : null
return TrayModel.ownedByDedicatedWidget(item, layout)
return TrayModel.ownedByOmarchy(item, layout)
}
function bucket(category) {
@@ -170,7 +170,7 @@ BarWidget {
for (var i = 0; i < values.length; i++) {
var item = values[i]
if (item.status === Status.Passive) continue
if (ownedByDedicatedWidget(item)) continue
if (ownedByOmarchy(item)) continue
if (category === "all") {
result.push(item)
continue