tmp commit
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
96d95fa08a
commit
1b38986a82
@ -30,7 +30,6 @@ class _AddressBookState extends State<AddressBook> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => Obx(() {
|
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) {
|
if (gFFI.userModel.userName.value.isEmpty) {
|
||||||
return Center(
|
return Center(
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
|
@ -57,7 +57,6 @@ class AbModel {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
debugPrint('REMOVE ME ====================== err $err');
|
|
||||||
err.printError();
|
err.printError();
|
||||||
abError.value = err.toString();
|
abError.value = err.toString();
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -125,10 +125,6 @@ class StateGlobal {
|
|||||||
gFFI.userModel.isAdmin.value = false;
|
gFFI.userModel.isAdmin.value = false;
|
||||||
gFFI.groupModel.reset();
|
gFFI.groupModel.reset();
|
||||||
}
|
}
|
||||||
debugPrint('REMOVE ME ========================== $preStatus -> ${stateGlobal.svcStatus.value}');
|
|
||||||
if (preStatus != stateGlobal.svcStatus.value) {
|
|
||||||
UserModel.updateOtherModels();
|
|
||||||
}
|
|
||||||
stateGlobal.svcIsUsingPublicServer.value =
|
stateGlobal.svcIsUsingPublicServer.value =
|
||||||
await bind.mainIsUsingPublicServer();
|
await bind.mainIsUsingPublicServer();
|
||||||
}
|
}
|
||||||
|
@ -929,14 +929,14 @@ async fn check_connect_status_(reconnect: bool, rx: mpsc::UnboundedReceiver<ipc:
|
|||||||
*TEMPORARY_PASSWD.lock().unwrap() = value;
|
*TEMPORARY_PASSWD.lock().unwrap() = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(Some(ipc::Data::OnlineStatus(Some((mut x, c))))) => {
|
Ok(Some(ipc::Data::OnlineStatus(Some((mut x, _c))))) => {
|
||||||
if x > 0 {
|
if x > 0 {
|
||||||
x = 1
|
x = 1
|
||||||
}
|
}
|
||||||
*UI_STATUS.lock().unwrap() = UiStatus {
|
*UI_STATUS.lock().unwrap() = UiStatus {
|
||||||
status_num: x as _,
|
status_num: x as _,
|
||||||
#[cfg(not(feature = "flutter"))]
|
#[cfg(not(feature = "flutter"))]
|
||||||
key_confirmed: c,
|
key_confirmed: _c,
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
not(any(target_os = "android", target_os = "ios")),
|
not(any(target_os = "android", target_os = "ios")),
|
||||||
feature = "flutter"
|
feature = "flutter"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user