fix switch sides delay #2893

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-01-28 10:39:13 +08:00
parent a529b14f2d
commit 435e774964
2 changed files with 2 additions and 2 deletions

View File

@ -652,8 +652,7 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
dismissOnClicked: true,
));
}
if (false &&
pi.platform != kPeerPlatformAndroid &&
if (pi.platform != kPeerPlatformAndroid &&
version_cmp(peer_version, '1.2.0') >= 0) {
displayMenu.add(MenuEntryButton<String>(
childBuilder: (TextStyle? style) => Text(

View File

@ -1583,6 +1583,7 @@ impl Connection {
uuid.to_string().as_ref(),
])
.ok();
self.on_close_manually("switch sides", "peer");
return false;
}
}