fix setting conn type
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
10043104a2
commit
1fb5cc7dd8
@ -576,7 +576,13 @@ class ImageModel with ChangeNotifier {
|
|||||||
addCallbackOnFirstImage(Function(String) cb) => callbacksOnFirstImage.add(cb);
|
addCallbackOnFirstImage(Function(String) cb) => callbacksOnFirstImage.add(cb);
|
||||||
|
|
||||||
onRgba(Uint8List rgba) {
|
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;
|
_waitForImage[id] = false;
|
||||||
parent.target?.dialogManager.dismissAll();
|
parent.target?.dialogManager.dismissAll();
|
||||||
if (isDesktop) {
|
if (isDesktop) {
|
||||||
@ -1564,6 +1570,7 @@ class FFI {
|
|||||||
id = 'pf_$id';
|
id = 'pf_$id';
|
||||||
} else {
|
} else {
|
||||||
chatModel.resetClientMode();
|
chatModel.resetClientMode();
|
||||||
|
connType = ConnType.defaultConn;
|
||||||
canvasModel.id = id;
|
canvasModel.id = id;
|
||||||
imageModel.id = id;
|
imageModel.id = id;
|
||||||
cursorModel.id = id;
|
cursorModel.id = id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user