ensure connection close
This commit is contained in:
parent
ce050e250d
commit
97614b3930
@ -104,6 +104,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage>
|
|||||||
|
|
||||||
void onRemoveId(String id) {
|
void onRemoveId(String id) {
|
||||||
DesktopTabBar.onClose(this, tabController, tabs, id);
|
DesktopTabBar.onClose(this, tabController, tabs, id);
|
||||||
|
ffi(id).close();
|
||||||
if (tabs.length == 0) {
|
if (tabs.length == 0) {
|
||||||
WindowController.fromWindowId(windowId()).close();
|
WindowController.fromWindowId(windowId()).close();
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,7 @@ class _FileManagerTabPageState extends State<FileManagerTabPage>
|
|||||||
|
|
||||||
void onRemoveId(String id) {
|
void onRemoveId(String id) {
|
||||||
DesktopTabBar.onClose(this, tabController, tabs, id);
|
DesktopTabBar.onClose(this, tabController, tabs, id);
|
||||||
|
ffi(id).close();
|
||||||
if (tabs.length == 0) {
|
if (tabs.length == 0) {
|
||||||
WindowController.fromWindowId(windowId()).close();
|
WindowController.fromWindowId(windowId()).close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user