mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
opt: remove unnecessary window listener
This commit is contained in:
parent
52f60154db
commit
01f497c234
@ -37,8 +37,7 @@ class ConnectionTabPage extends StatefulWidget {
|
||||
State<ConnectionTabPage> createState() => _ConnectionTabPageState(params);
|
||||
}
|
||||
|
||||
class _ConnectionTabPageState extends State<ConnectionTabPage>
|
||||
with MultiWindowListener {
|
||||
class _ConnectionTabPageState extends State<ConnectionTabPage> {
|
||||
final tabController = Get.put(DesktopTabController(
|
||||
tabType: DesktopTabType.remoteScreen,
|
||||
onSelected: (_, id) => bind.setCurSessionId(id: id)));
|
||||
@ -106,13 +105,11 @@ class _ConnectionTabPageState extends State<ConnectionTabPage>
|
||||
}
|
||||
_update_remote_count();
|
||||
});
|
||||
DesktopMultiWindow.addListener(this);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
DesktopMultiWindow.removeListener(this);
|
||||
_menubarState.save();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user