fix port forward session id & file session dispose

This commit is contained in:
csf 2022-08-29 18:37:03 +08:00
parent a90973621a
commit 37617fa888
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ class _FileManagerTabPageState extends State<FileManagerTabPage> {
} else if (call.method == "onDestroy") {
tabController.state.value.tabs.forEach((tab) {
print("executing onDestroy hook, closing ${tab.label}}");
final tag = tab.label;
final tag = 'ft_${tab.label}';
ffi(tag).close().then((_) {
Get.delete<FFI>(tag: tag);
});

View File

@ -26,7 +26,7 @@ class _PortForwardTabPageState extends State<PortForwardTabPage> {
_PortForwardTabPageState(Map<String, dynamic> params) {
tabController.add(TabInfo(
key: params['id'] + params['isRDP'].toString(),
key: params['id'],
label: params['id'],
selectedIcon: selectedIcon,
unselectedIcon: unselectedIcon,
@ -61,7 +61,7 @@ class _PortForwardTabPageState extends State<PortForwardTabPage> {
} else if (call.method == "onDestroy") {
tabController.state.value.tabs.forEach((tab) {
print("executing onDestroy hook, closing ${tab.label}}");
final tag = tab.label;
final tag = 'pf_${tab.label}';
ffi(tag).close().then((_) {
Get.delete<FFI>(tag: tag);
});