mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
debug, mobile, connection state
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -15,7 +15,8 @@ import '../common/formatter/id_formatter.dart';
|
||||
import '../desktop/pages/server_page.dart' as desktop;
|
||||
import '../desktop/widgets/tabbar_widget.dart';
|
||||
import '../mobile/pages/server_page.dart';
|
||||
import 'model.dart';
|
||||
import './model.dart';
|
||||
import './state_model.dart';
|
||||
|
||||
const kLoginDialogTag = "LOGIN";
|
||||
|
||||
@@ -117,6 +118,7 @@ class ServerModel with ChangeNotifier {
|
||||
_serverId = IDTextEditingController(text: _emptyIdShow);
|
||||
|
||||
timerCallback() async {
|
||||
stateGlobal.updateSvcStatus();
|
||||
if (desktopType == DesktopType.cm) {
|
||||
final res = await bind.cmCheckClientsLength(length: _clients.length);
|
||||
if (res != null) {
|
||||
|
||||
@@ -95,7 +95,7 @@ class StateGlobal {
|
||||
|
||||
startSvcStatusTimer() {
|
||||
_svcStatusTimer = periodic_immediate(Duration(seconds: 1), () async {
|
||||
_updateSvcStatus();
|
||||
updateSvcStatus();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class StateGlobal {
|
||||
_svcStatusTimer = null;
|
||||
}
|
||||
|
||||
_updateSvcStatus() async {
|
||||
updateSvcStatus() async {
|
||||
final status =
|
||||
jsonDecode(await bind.mainGetConnectStatus()) as Map<String, dynamic>;
|
||||
final statusNum = status['status_num'] as int;
|
||||
|
||||
Reference in New Issue
Block a user