mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-24 01:18:21 +00:00
mobile reset waitForImage
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
b9bbe7a432
commit
7a62eb0ebf
1 changed files with 9 additions and 0 deletions
|
|
@ -1716,6 +1716,14 @@ class FFI {
|
|||
elevationModel = ElevationModel(WeakReference(this));
|
||||
}
|
||||
|
||||
/// Mobile reuse FFI
|
||||
void mobileReset() {
|
||||
ffiModel.waitForFirstImage.value = true;
|
||||
ffiModel.waitForImageDialogShow.value = true;
|
||||
ffiModel.waitForImageTimer?.cancel();
|
||||
ffiModel.waitForImageTimer = null;
|
||||
}
|
||||
|
||||
/// Start with the given [id]. Only transfer file if [isFileTransfer], only port forward if [isPortForward].
|
||||
void start(String id,
|
||||
{bool isFileTransfer = false,
|
||||
|
|
@ -1727,6 +1735,7 @@ class FFI {
|
|||
int? tabWindowId}) {
|
||||
closed = false;
|
||||
auditNote = '';
|
||||
if (isMobile) mobileReset();
|
||||
assert(!(isFileTransfer && isPortForward), 'more than one connect type');
|
||||
if (isFileTransfer) {
|
||||
connType = ConnType.fileTransfer;
|
||||
|
|
|
|||
Loading…
Reference in a new issue