revert missing retry and opt keep session (#9755)
* Revert "fix missing retry (#8750)"
If `hasRetry` is true: there is a retry timeout;
If `hasRetry` is false: there is no retry button;
In
https://github.com/rustdesk/rustdesk/discussions/8748#discussioncomment-10081038,when
doesn't want inactive to retry,
https://github.com/rustdesk/rustdesk/blob/cf0e3ec303990a48e0b3a6beedd3587079a6526c/flutter/lib/models/model.dart#L444,
1.2.3 always show retry no matter what `hasRetry` is.
This reverts commit c3c99ba107.
* not keep session if there is no remote connection left.
Signed-off-by: 21pages <sunboeasy@gmail.com>
---------
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -638,7 +638,7 @@ class FfiModel with ChangeNotifier {
|
||||
{bool? hasCancel}) {
|
||||
msgBox(sessionId, type, title, text, link, dialogManager,
|
||||
hasCancel: hasCancel,
|
||||
reconnect: reconnect,
|
||||
reconnect: hasRetry ? reconnect : null,
|
||||
reconnectTimeout: hasRetry ? _reconnects : null);
|
||||
_timer?.cancel();
|
||||
if (hasRetry) {
|
||||
|
||||
Reference in New Issue
Block a user