Merge pull request #5301 from 21pages/fix

add missing Get.delete, android can update id controller
This commit is contained in:
RustDesk 2023-08-09 14:00:52 +08:00 committed by GitHub
commit a35635f4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,9 @@ class _ConnectionPageState extends State<ConnectionPage>
_idController.dispose();
_updateTimer?.cancel();
windowManager.removeListener(this);
if (Get.isRegistered<IDTextEditingController>()) {
Get.delete<IDTextEditingController>();
}
super.dispose();
}

View File

@ -196,6 +196,9 @@ class _ConnectionPageState extends State<ConnectionPage> {
@override
void dispose() {
_idController.dispose();
if (Get.isRegistered<IDTextEditingController>()) {
Get.delete<IDTextEditingController>();
}
super.dispose();
}
}