mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
remove calling refreshCurrentUser when connect status become ready (#8849)
When refreshCurrentUser throw error, show check network in ab and group tab. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
9750e1409c
commit
7e8d3bd2ac
51 changed files with 90 additions and 13 deletions
|
@ -3490,3 +3490,20 @@ disableWindowMovable(int? windowId) {
|
|||
WindowController.fromWindowId(windowId).setMovable(false);
|
||||
}
|
||||
}
|
||||
|
||||
Widget netWorkErrorWidget() {
|
||||
return Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Text(translate("network_error_tip")),
|
||||
ElevatedButton(
|
||||
onPressed: gFFI.userModel.refreshCurrentUser,
|
||||
child: Text(translate("Retry")))
|
||||
.marginSymmetric(vertical: 16),
|
||||
Text(gFFI.userModel.networkError.value,
|
||||
style: TextStyle(fontSize: 11, color: Colors.red)),
|
||||
],
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue