win, translate mode, debug almost done

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-02-06 18:13:17 +08:00
parent 6eec0041bd
commit ddc9792d15
6 changed files with 14 additions and 43 deletions

View File

@@ -1391,6 +1391,12 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
for (KeyboardModeMenu mode in modes) {
if (bind.sessionIsKeyboardModeSupported(
id: widget.id, mode: mode.key)) {
if (mode.key == 'translate') {
if (!Platform.isWindows ||
widget.ffi.ffiModel.pi.platform != kPeerPlatformWindows) {
continue;
}
}
list.add(MenuEntryRadioOption(
text: translate(mode.menu), value: mode.key));
}