show rdp menu only windows to windows

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-09-29 08:42:06 +08:00
parent 3e61b89499
commit 5e444de031

View File

@ -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) {