mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
ensure connection close
This commit is contained in:
@@ -104,6 +104,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage>
|
||||
|
||||
void onRemoveId(String id) {
|
||||
DesktopTabBar.onClose(this, tabController, tabs, id);
|
||||
ffi(id).close();
|
||||
if (tabs.length == 0) {
|
||||
WindowController.fromWindowId(windowId()).close();
|
||||
}
|
||||
|
||||
@@ -93,6 +93,7 @@ class _FileManagerTabPageState extends State<FileManagerTabPage>
|
||||
|
||||
void onRemoveId(String id) {
|
||||
DesktopTabBar.onClose(this, tabController, tabs, id);
|
||||
ffi(id).close();
|
||||
if (tabs.length == 0) {
|
||||
WindowController.fromWindowId(windowId()).close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user