mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +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 {
|
||||
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 {
|
||||
actions.append(.copyCaption)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user