mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-31 08:52:49 -05:00
clipboard: skip application/vnd.portal.filetransfer mime in history
This commit is contained in:
@@ -538,8 +538,14 @@ func (m *Manager) selectMimeType(mimes []string) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(mimes) > 0 {
|
// Skip useless MIME types when falling back
|
||||||
return mimes[0]
|
for _, mime := range mimes {
|
||||||
|
switch mime {
|
||||||
|
case "application/vnd.portal.filetransfer":
|
||||||
|
continue
|
||||||
|
default:
|
||||||
|
return mime
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user