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:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user