clipboard: skip application/vnd.portal.filetransfer mime in history

This commit is contained in:
bbedward committed 2026-01-26 16:40:56 -05:00
1 parent 2a02d5594c
commit 08cc076a4c
1 file changed
+8 -2
+8 -2
View File
@@ -538,8 +538,14 @@ func (m *Manager) selectMimeType(mimes []string) string {
}
}
if len(mimes) > 0 {
return mimes[0]
// Skip useless MIME types when falling back
for _, mime := range mimes {
switch mime {
case "application/vnd.portal.filetransfer":
continue
default:
return mime
}
}
return ""