From 1b38986a82add2bfbbfa9c49875cba0a155b78da Mon Sep 17 00:00:00 2001 From: dignow Date: Fri, 23 Jun 2023 00:11:57 +0800 Subject: [PATCH] tmp commit Signed-off-by: dignow --- flutter/lib/common/widgets/address_book.dart | 1 - flutter/lib/models/ab_model.dart | 1 - flutter/lib/models/state_model.dart | 4 ---- src/ui_interface.rs | 4 ++-- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/flutter/lib/common/widgets/address_book.dart b/flutter/lib/common/widgets/address_book.dart index 9a516653b..08df6d4e5 100644 --- a/flutter/lib/common/widgets/address_book.dart +++ b/flutter/lib/common/widgets/address_book.dart @@ -30,7 +30,6 @@ class _AddressBookState extends State { @override Widget build(BuildContext context) => Obx(() { - debugPrint('REMOVE ME =========================== AddressBook ${gFFI.userModel.userName.value} ${gFFI.abModel.abLoading} ${gFFI.abModel.abError} ${gFFI.abModel.fromServer} ${isDesktop}'); if (gFFI.userModel.userName.value.isEmpty) { return Center( child: ElevatedButton( diff --git a/flutter/lib/models/ab_model.dart b/flutter/lib/models/ab_model.dart index 13b153891..8bcb3f7a6 100644 --- a/flutter/lib/models/ab_model.dart +++ b/flutter/lib/models/ab_model.dart @@ -57,7 +57,6 @@ class AbModel { return ""; } } catch (err) { - debugPrint('REMOVE ME ====================== err $err'); err.printError(); abError.value = err.toString(); } finally { diff --git a/flutter/lib/models/state_model.dart b/flutter/lib/models/state_model.dart index 825a73751..2a457881d 100644 --- a/flutter/lib/models/state_model.dart +++ b/flutter/lib/models/state_model.dart @@ -125,10 +125,6 @@ class StateGlobal { gFFI.userModel.isAdmin.value = false; gFFI.groupModel.reset(); } - debugPrint('REMOVE ME ========================== $preStatus -> ${stateGlobal.svcStatus.value}'); - if (preStatus != stateGlobal.svcStatus.value) { - UserModel.updateOtherModels(); - } stateGlobal.svcIsUsingPublicServer.value = await bind.mainIsUsingPublicServer(); } diff --git a/src/ui_interface.rs b/src/ui_interface.rs index 7ce9a0000..39930fa4b 100644 --- a/src/ui_interface.rs +++ b/src/ui_interface.rs @@ -929,14 +929,14 @@ async fn check_connect_status_(reconnect: bool, rx: mpsc::UnboundedReceiver { + Ok(Some(ipc::Data::OnlineStatus(Some((mut x, _c))))) => { if x > 0 { x = 1 } *UI_STATUS.lock().unwrap() = UiStatus { status_num: x as _, #[cfg(not(feature = "flutter"))] - key_confirmed: c, + key_confirmed: _c, #[cfg(all( not(any(target_os = "android", target_os = "ios")), feature = "flutter"