mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 23:11:28 +03:00
ensure connection close
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user