refactor DesktopTab impl for connection_tab_page.dart

This commit is contained in:
csf
2022-08-24 20:56:42 +08:00
parent 66b1459126
commit cc3c725f38
3 changed files with 83 additions and 78 deletions

View File

@@ -206,7 +206,8 @@ closeConnection({String? id}) {
if (isAndroid || isIOS) {
Navigator.popUntil(globalKey.currentContext!, ModalRoute.withName("/"));
} else {
DesktopTabBar.close(id);
final controller = Get.find<DesktopTabController>();
controller.closeBy(id);
}
}