Merge pull request #1888 from Kingtous/master
fix: close previous tab causes reconnection
This commit is contained in:
commit
4d29f97c78
@ -80,14 +80,17 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
|||||||
selectedIcon: selectedIcon,
|
selectedIcon: selectedIcon,
|
||||||
unselectedIcon: unselectedIcon,
|
unselectedIcon: unselectedIcon,
|
||||||
onTabCloseButton: () => tabController.closeBy(id),
|
onTabCloseButton: () => tabController.closeBy(id),
|
||||||
page: Obx(() => RemotePage(
|
page: ObxValue<RxBool>(
|
||||||
key: ValueKey(id),
|
(fullscreen) => RemotePage(
|
||||||
id: id,
|
id: id,
|
||||||
windowId: windowId(),
|
windowId: windowId(),
|
||||||
tabBarHeight:
|
tabBarHeight:
|
||||||
fullscreen.isTrue ? 0 : kDesktopRemoteTabBarHeight,
|
fullscreen.isTrue ? 0 : kDesktopRemoteTabBarHeight,
|
||||||
windowBorderWidth: fullscreen.isTrue ? 0 : kWindowBorderWidth,
|
windowBorderWidth: fullscreen.isTrue ? 0 : kWindowBorderWidth,
|
||||||
))));
|
),
|
||||||
|
fullscreen,
|
||||||
|
key: ValueKey(id),
|
||||||
|
)));
|
||||||
} else if (call.method == "onDestroy") {
|
} else if (call.method == "onDestroy") {
|
||||||
tabController.clear();
|
tabController.clear();
|
||||||
} else if (call.method == kWindowActionRebuild) {
|
} else if (call.method == kWindowActionRebuild) {
|
||||||
|
@ -64,7 +64,7 @@ dependencies:
|
|||||||
desktop_multi_window:
|
desktop_multi_window:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
||||||
ref: bf278fc8a8ff787e46fa3ab97674373bfaa20f23
|
ref: 39a8a5b8aed059a89a1694ed2dffe69e31da2ac1
|
||||||
freezed_annotation: ^2.0.3
|
freezed_annotation: ^2.0.3
|
||||||
tray_manager:
|
tray_manager:
|
||||||
git:
|
git:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user