mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-24 09:28:23 +00:00
fix setting conn type
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
10043104a2
commit
1fb5cc7dd8
1 changed files with 8 additions and 1 deletions
|
|
@ -576,7 +576,13 @@ class ImageModel with ChangeNotifier {
|
|||
addCallbackOnFirstImage(Function(String) cb) => callbacksOnFirstImage.add(cb);
|
||||
|
||||
onRgba(Uint8List rgba) {
|
||||
if (_waitForImage[id]!) {
|
||||
final waitforImage = _waitForImage[id];
|
||||
if (waitforImage == null) {
|
||||
debugPrint('Exception, peer $id not found for waiting image');
|
||||
return;
|
||||
}
|
||||
|
||||
if (waitforImage == true) {
|
||||
_waitForImage[id] = false;
|
||||
parent.target?.dialogManager.dismissAll();
|
||||
if (isDesktop) {
|
||||
|
|
@ -1564,6 +1570,7 @@ class FFI {
|
|||
id = 'pf_$id';
|
||||
} else {
|
||||
chatModel.resetClientMode();
|
||||
connType = ConnType.defaultConn;
|
||||
canvasModel.id = id;
|
||||
imageModel.id = id;
|
||||
cursorModel.id = id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue