Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: mobile more actions, check version 1.2.7 (#8526)

fufesou1fd170b089c9
diff --git a/flutter/lib/desktop/widgets/remote_toolbar.dart b/flutter/lib/desktop/widgets/remote_toolbar.dart
index 1baae26d3..53df40fed 100644
--- a/flutter/lib/desktop/widgets/remote_toolbar.dart
+++ b/flutter/lib/desktop/widgets/remote_toolbar.dart
@@ -1882,7 +1882,7 @@ class _KeyboardMenu extends StatelessWidget {
mobileActions() {
if (pi.platform != kPeerPlatformAndroid) return [];
- final enabled = versionCmp(pi.version, '1.2.6') >= 0;
+ final enabled = versionCmp(pi.version, '1.2.7') >= 0;
if (!enabled) return [];
return [
Divider(),
diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dart
index 7c4adcf92..cd5743d0b 100644
--- a/flutter/lib/mobile/pages/remote_page.dart
+++ b/flutter/lib/mobile/pages/remote_page.dart
@@ -558,6 +558,8 @@ class _RemotePageState extends State<RemotePage> {
!gFFI.ffiModel.keyboard) {
return [];
}
+ final enabled = versionCmp(gFFI.ffiModel.pi.version, '1.2.7') >= 0;
+ if (!enabled) return [];
return [
TTextMenu(
child: Text(translate('Back')),