mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-12 10:56:11 +02:00
fix mobile doesn't init ConnectionTypeState
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
eb58a39f57
commit
d15a641d88
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import 'package:flutter_hbb/common.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../consts.dart';
|
||||
|
@ -318,6 +319,7 @@ initSharedStates(String id) {
|
|||
FingerprintState.init(id);
|
||||
PeerBoolOption.init(id, 'zoom-cursor', () => false);
|
||||
UnreadChatCountState.init(id);
|
||||
if (isMobile) ConnectionTypeState.init(id); // desktop in other places
|
||||
}
|
||||
|
||||
removeSharedStates(String id) {
|
||||
|
@ -330,4 +332,5 @@ removeSharedStates(String id) {
|
|||
FingerprintState.delete(id);
|
||||
PeerBoolOption.delete(id, 'zoom-cursor');
|
||||
UnreadChatCountState.delete(id);
|
||||
if (isMobile) ConnectionTypeState.delete(id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue