mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
fix: terminal, persistent (#12357)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -124,7 +124,7 @@ class _TerminalTabPageState extends State<TerminalTabPage> {
|
|||||||
},
|
},
|
||||||
setter: (bool v) async {
|
setter: (bool v) async {
|
||||||
final ffi = Get.find<FFI>(tag: 'terminal_$peerId');
|
final ffi = Get.find<FFI>(tag: 'terminal_$peerId');
|
||||||
bind.sessionToggleOption(
|
await bind.sessionToggleOption(
|
||||||
sessionId: ffi.sessionId,
|
sessionId: ffi.sessionId,
|
||||||
value: kOptionTerminalPersistent,
|
value: kOptionTerminalPersistent,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -696,10 +696,7 @@ impl TerminalServiceProxy {
|
|||||||
opened.success = true;
|
opened.success = true;
|
||||||
opened.message = "Reconnected to existing terminal".to_string();
|
opened.message = "Reconnected to existing terminal".to_string();
|
||||||
opened.pid = session.pid;
|
opened.pid = session.pid;
|
||||||
// Return service_id for persistent sessions
|
opened.service_id = self.service_id.clone();
|
||||||
if self.is_persistent {
|
|
||||||
opened.service_id = self.service_id.clone();
|
|
||||||
}
|
|
||||||
if service.needs_session_sync {
|
if service.needs_session_sync {
|
||||||
if service.sessions.len() > 1 {
|
if service.sessions.len() > 1 {
|
||||||
// No need to include the current terminal in the list.
|
// No need to include the current terminal in the list.
|
||||||
@@ -869,10 +866,7 @@ impl TerminalServiceProxy {
|
|||||||
opened.success = true;
|
opened.success = true;
|
||||||
opened.message = "Terminal opened".to_string();
|
opened.message = "Terminal opened".to_string();
|
||||||
opened.pid = session.pid;
|
opened.pid = session.pid;
|
||||||
// Return service_id for persistent sessions
|
opened.service_id = service.service_id.clone();
|
||||||
if self.is_persistent {
|
|
||||||
opened.service_id = service.service_id.clone();
|
|
||||||
}
|
|
||||||
if service.needs_session_sync {
|
if service.needs_session_sync {
|
||||||
if !service.sessions.is_empty() {
|
if !service.sessions.is_empty() {
|
||||||
opened.persistent_sessions = service.sessions.keys().cloned().collect();
|
opened.persistent_sessions = service.sessions.keys().cloned().collect();
|
||||||
|
|||||||
Reference in New Issue
Block a user