Merge branch 'master' of github.com-rustdesk:rustdesk/rustdesk
This commit is contained in:
commit
d56356e595
5
.github/workflows/history.yml
vendored
5
.github/workflows/history.yml
vendored
@ -14,16 +14,13 @@ env:
|
||||
|
||||
jobs:
|
||||
build-for-history-windows:
|
||||
name: ${{ matrix.job.date }})
|
||||
name: ${{ matrix.job.date }}
|
||||
runs-on: ${{ matrix.job.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
job:
|
||||
# - { target: i686-pc-windows-msvc , os: windows-2019 }
|
||||
# - { target: x86_64-pc-windows-gnu , os: windows-2019 }
|
||||
- { target: x86_64-pc-windows-msvc, os: windows-2019, arch: x86_64, date: 2023-08-04, ref: 72c198a1e94cc1e0242fce88f92b3f3caedcd0c3 }
|
||||
# - { target: aarch64-pc-windows-msvc, os: windows-2019, arch: aarch64 }
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v3
|
||||
|
@ -163,7 +163,7 @@ class AbModel {
|
||||
void addPeer(Peer peer) {
|
||||
final index = peers.indexWhere((e) => e.id == peer.id);
|
||||
if (index >= 0) {
|
||||
peers[index] = merge(peer, peers[index]);
|
||||
merge(peer, peers[index]);
|
||||
} else {
|
||||
peers.add(peer);
|
||||
}
|
||||
@ -365,18 +365,14 @@ class AbModel {
|
||||
}
|
||||
}
|
||||
|
||||
Peer merge(Peer r, Peer p) {
|
||||
return Peer(
|
||||
id: p.id,
|
||||
hash: r.hash.isEmpty ? p.hash : r.hash,
|
||||
username: r.username.isEmpty ? p.username : r.username,
|
||||
hostname: r.hostname.isEmpty ? p.hostname : r.hostname,
|
||||
platform: r.platform.isEmpty ? p.platform : r.platform,
|
||||
alias: p.alias.isEmpty ? r.alias : p.alias,
|
||||
tags: p.tags,
|
||||
forceAlwaysRelay: r.forceAlwaysRelay,
|
||||
rdpPort: r.rdpPort,
|
||||
rdpUsername: r.rdpUsername);
|
||||
void merge(Peer r, Peer p) {
|
||||
p.hash = r.hash.isEmpty ? p.hash : r.hash;
|
||||
p.username = r.username.isEmpty ? p.username : r.username;
|
||||
p.hostname = r.hostname.isEmpty ? p.hostname : r.hostname;
|
||||
p.alias = p.alias.isEmpty ? r.alias : p.alias;
|
||||
p.forceAlwaysRelay = r.forceAlwaysRelay;
|
||||
p.rdpPort = r.rdpPort;
|
||||
p.rdpUsername = r.rdpUsername;
|
||||
}
|
||||
|
||||
Future<void> syncFromRecent({bool push = true}) async {
|
||||
@ -445,14 +441,14 @@ class AbModel {
|
||||
needSync = true;
|
||||
}
|
||||
} else {
|
||||
if (!r.equal(peers[index])) {
|
||||
uiChanged = true;
|
||||
}
|
||||
Peer old = Peer.copy(peers[index]);
|
||||
peers[index] = merge(r, peers[index]);
|
||||
merge(r, peers[index]);
|
||||
if (!peerSyncEqual(peers[index], old)) {
|
||||
needSync = true;
|
||||
}
|
||||
if (!old.equal(peers[index])) {
|
||||
uiChanged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Be careful with loop calls
|
||||
|
@ -7,9 +7,9 @@ import 'package:collection/collection.dart';
|
||||
class Peer {
|
||||
final String id;
|
||||
String hash;
|
||||
final String username;
|
||||
final String hostname;
|
||||
final String platform;
|
||||
String username;
|
||||
String hostname;
|
||||
String platform;
|
||||
String alias;
|
||||
List<dynamic> tags;
|
||||
bool forceAlwaysRelay = false;
|
||||
|
@ -17,7 +17,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Transfer File", "Transferir archivo"),
|
||||
("Connect", "Conectar"),
|
||||
("Recent Sessions", "Sesiones recientes"),
|
||||
("Address Book", "Libreta de direcciones"),
|
||||
("Address Book", "Directorio"),
|
||||
("Confirmation", "Confirmación"),
|
||||
("TCP Tunneling", "Túnel TCP"),
|
||||
("Remove", "Quitar"),
|
||||
@ -412,7 +412,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("wayland_experiment_tip", "El soporte para Wayland está en fase experimental, por favor, use X11 si necesita acceso desatendido."),
|
||||
("Right click to select tabs", "Clic derecho para seleccionar pestañas"),
|
||||
("Skipped", "Omitido"),
|
||||
("Add to Address Book", "Añadir a la libreta de direcciones"),
|
||||
("Add to Address Book", "Añadir al directorio"),
|
||||
("Group", "Grupo"),
|
||||
("Search", "Búsqueda"),
|
||||
("Closed manually by web console", "Cerrado manualmente por la consola web"),
|
||||
@ -472,7 +472,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("empty_recent_tip", "¡Vaya, no hay conexiones recientes!\nEs hora de planificar una nueva."),
|
||||
("empty_favorite_tip", "¿Sin pares favoritos aún?\nEncontremos uno al que conectarte y ¡añádelo a tus favoritos!"),
|
||||
("empty_lan_tip", "Oh no, parece que aún no has descubierto ningún par."),
|
||||
("empty_address_book_tip", "Parece que actualmente no hay pares en tu libreta de direcciones."),
|
||||
("empty_address_book_tip", "Parece que actualmente no hay pares en tu directorio."),
|
||||
("eg: admin", "ej.: admin"),
|
||||
("Empty Username", "Nombre de usuario vacío"),
|
||||
("Empty Password", "Contraseña vacía"),
|
||||
@ -531,12 +531,12 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Change Password", "Cambiar contraseña"),
|
||||
("Refresh Password", "Refrescar contraseña"),
|
||||
("ID", ""),
|
||||
("Grid View", "Ver en Cuadrícula"),
|
||||
("List View", "Ver en Lista"),
|
||||
("Grid View", "Vista Cuadrícula"),
|
||||
("List View", "Vista Lista"),
|
||||
("Select", "Seleccionar"),
|
||||
("Toggle Tags", "Alternar Etiquetas"),
|
||||
("pull_ab_failed_tip", ""),
|
||||
("push_ab_failed_tip", ""),
|
||||
("synced_peer_readded_tip", ""),
|
||||
("pull_ab_failed_tip", "No se ha podido refrescar el directorio"),
|
||||
("push_ab_failed_tip", "No se ha podido sincronizar el directorio con el servidor"),
|
||||
("synced_peer_readded_tip", "Los dispositivos presentes en sesiones recientes se sincronizarán con el directorio."),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user