Skip to content

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

show rdp menu only windows to windows

21pages5e444de031fd
diff --git a/flutter/lib/common/widgets/peer_card.dart b/flutter/lib/common/widgets/peer_card.dart
index ab2c8309a..d9f599f37 100644
--- a/flutter/lib/common/widgets/peer_card.dart
+++ b/flutter/lib/common/widgets/peer_card.dart
@@ -868,7 +868,7 @@ class RecentPeerCard extends BasePeerCard {
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
menuItems.add(await _forceAlwaysRelayAction(peer.id));
- if (peer.platform == 'Windows') {
+ if (Platform.isWindows && peer.platform == 'Windows') {
menuItems.add(_rdpAction(context, peer.id));
}
if (Platform.isWindows) {
@@ -922,7 +922,7 @@ class FavoritePeerCard extends BasePeerCard {
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
menuItems.add(await _forceAlwaysRelayAction(peer.id));
- if (peer.platform == 'Windows') {
+ if (Platform.isWindows && peer.platform == 'Windows') {
menuItems.add(_rdpAction(context, peer.id));
}
if (Platform.isWindows) {
@@ -976,7 +976,7 @@ class DiscoveredPeerCard extends BasePeerCard {
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
menuItems.add(await _forceAlwaysRelayAction(peer.id));
- if (peer.platform == 'Windows') {
+ if (Platform.isWindows && peer.platform == 'Windows') {
menuItems.add(_rdpAction(context, peer.id));
}
menuItems.add(_wolAction(peer.id));
@@ -1026,7 +1026,7 @@ class AddressBookPeerCard extends BasePeerCard {
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
menuItems.add(await _forceAlwaysRelayAction(peer.id));
- if (peer.platform == 'Windows') {
+ if (Platform.isWindows && peer.platform == 'Windows') {
menuItems.add(_rdpAction(context, peer.id));
}
if (Platform.isWindows) {
@@ -1094,7 +1094,7 @@ class MyGroupPeerCard extends BasePeerCard {
}
// menuItems.add(await _openNewConnInOptAction(peer.id));
// menuItems.add(await _forceAlwaysRelayAction(peer.id));
- if (peer.platform == 'Windows') {
+ if (Platform.isWindows && peer.platform == 'Windows') {
menuItems.add(_rdpAction(context, peer.id));
}
if (Platform.isWindows) {