mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Hide the Translate action on macOS in favour of selecting the text. (#4954)
Hide the Translate action on macOS. It doesn't work, but it's also easy enough to translate on Mac by selecting the text anyway.
This commit is contained in:
+6
-1
@@ -91,7 +91,12 @@ struct TimelineItemMenuActionProvider {
|
|||||||
|
|
||||||
if item.isCopyable {
|
if item.isCopyable {
|
||||||
actions.append(.copy)
|
actions.append(.copy)
|
||||||
actions.append(.translate)
|
|
||||||
|
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||||
|
// As of macOS 26.2, the sheet isn't presented, but it is easy enough
|
||||||
|
// to select some text and right click on Mac anyway so hide this one.
|
||||||
|
actions.append(.translate)
|
||||||
|
}
|
||||||
} else if item.hasMediaCaption {
|
} else if item.hasMediaCaption {
|
||||||
actions.append(.copyCaption)
|
actions.append(.copyCaption)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user