reload session list if alias change

This commit is contained in:
rustdesk 2022-01-02 13:56:47 +08:00
parent 40730cbbae
commit 241623c406
2 changed files with 28 additions and 42 deletions

66
Cargo.lock generated
View File

@ -469,7 +469,7 @@ version = "0.4.1"
source = "git+https://github.com/open-trade/confy#27fa12941291b44ccd856aef4a5452c1eb646047"
dependencies = [
"directories",
"serde 1.0.132",
"serde 1.0.133",
"toml",
]
@ -805,17 +805,6 @@ dependencies = [
"byteorder",
]
[[package]]
name = "derivative"
version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "derive_more"
version = "0.99.17"
@ -904,7 +893,7 @@ checksum = "7f3f119846c823f9eafcf953a8f6ffb6ed69bf6240883261a7f13b634579a51f"
dependencies = [
"lazy_static",
"regex",
"serde 1.0.132",
"serde 1.0.133",
"strsim 0.10.0",
]
@ -938,7 +927,7 @@ dependencies = [
"log",
"objc",
"pkg-config",
"serde 1.0.132",
"serde 1.0.133",
"serde_derive",
"unicode-segmentation",
"winapi 0.3.9",
@ -1579,9 +1568,9 @@ dependencies = [
"protobuf-codegen-pure",
"quinn",
"rand 0.8.4",
"serde 1.0.132",
"serde 1.0.133",
"serde_derive",
"serde_json 1.0.73",
"serde_json 1.0.74",
"socket2 0.3.19",
"sodiumoxide",
"tokio",
@ -2260,19 +2249,18 @@ dependencies = [
[[package]]
name = "num_enum"
version = "0.5.5"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "085fe377a4b2805c0fbc09484415ec261174614b7f080b0e0d520456ac421a67"
checksum = "720d3ea1055e4e4574c0c0b0f8c3fd4f24c4cdaf465948206dea090b57b526ad"
dependencies = [
"derivative",
"num_enum_derive",
]
[[package]]
name = "num_enum_derive"
version = "0.5.5"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5249369707a1e07b39f78d98c8f34e00aca7dcb053812fdbb5ad7be82c1bba38"
checksum = "0d992b768490d7fe0d8586d9b5745f6c49f557da6d81dc982b1d167ad4edbb21"
dependencies = [
"proc-macro-crate 1.1.0",
"proc-macro2",
@ -2469,9 +2457,9 @@ dependencies = [
[[package]]
name = "pin-project-lite"
version = "0.2.7"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
[[package]]
name = "pin-utils"
@ -2505,9 +2493,9 @@ dependencies = [
[[package]]
name = "ppv-lite86"
version = "0.2.15"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba"
checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
[[package]]
name = "pretty-hex"
@ -3075,9 +3063,9 @@ dependencies = [
"samplerate",
"sciter-rs",
"scrap",
"serde 1.0.132",
"serde 1.0.133",
"serde_derive",
"serde_json 1.0.73",
"serde_json 1.0.74",
"sha2",
"sys-locale",
"systray",
@ -3208,7 +3196,7 @@ dependencies = [
"num_cpus",
"quest",
"repng",
"serde 1.0.132",
"serde 1.0.133",
"target_build_utils",
"tracing",
"webm",
@ -3256,18 +3244,18 @@ checksum = "34b623917345a631dc9608d5194cc206b3fe6c3554cd1c75b937e55e285254af"
[[package]]
name = "serde"
version = "1.0.132"
version = "1.0.133"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b9875c23cf305cd1fd7eb77234cbb705f21ea6a72c637a5c6db5fe4b8e7f008"
checksum = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.132"
version = "1.0.133"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecc0db5cb2556c0e558887d9bbdcf6ac4471e83ff66cf696e5419024d1606276"
checksum = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537"
dependencies = [
"proc-macro2",
"quote",
@ -3288,13 +3276,13 @@ dependencies = [
[[package]]
name = "serde_json"
version = "1.0.73"
version = "1.0.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bcbd0344bc6533bc7ec56df11d42fb70f1b912351c0825ccb7211b59d8af7cf5"
checksum = "ee2bb9cd061c5865d345bb02ca49fcef1391741b672b54a0bf7b679badec3142"
dependencies = [
"itoa 1.0.1",
"ryu",
"serde 1.0.132",
"serde 1.0.133",
]
[[package]]
@ -3383,7 +3371,7 @@ dependencies = [
"ed25519",
"libc",
"libsodium-sys",
"serde 1.0.132",
"serde 1.0.133",
]
[[package]]
@ -3677,7 +3665,7 @@ version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa"
dependencies = [
"serde 1.0.132",
"serde 1.0.133",
]
[[package]]
@ -3781,9 +3769,9 @@ checksum = "d63556a25bae6ea31b52e640d7c41d1ab27faba4ccb600013837a3d0b3994ca1"
[[package]]
name = "version_check"
version = "0.9.3"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "walkdir"

View File

@ -207,9 +207,7 @@ class SessionList: Reactor.Component {
if (name != old_name) {
handler.set_peer_option(id, "alias", name);
}
try {
self.select('#' + id).select('#alias').text = name || id;
} catch (e) {}
app.update();
});
}
}