1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 15:02:50 -05:00

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

This commit is contained in:
bbedward
2026-01-26 16:40:56 -05:00
parent 2a02d5594c
commit 08cc076a4c

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 ""