remove old back-compatibility code

This commit is contained in:
rustdesk 2022-02-10 11:32:16 +08:00
parent 4df09f4aec
commit 08fdeb7d4b
3 changed files with 1 additions and 10 deletions

View File

@ -675,8 +675,6 @@ pub struct LoginConfigHandler {
pub remember: bool,
config: PeerConfig,
pub port_forward: (String, i32),
pub support_press: bool,
pub support_refresh: bool,
pub version: i64,
}
@ -942,8 +940,6 @@ impl LoginConfigHandler {
pub fn handle_peer_info(&mut self, username: String, pi: PeerInfo) {
if !pi.version.is_empty() {
self.support_press = true;
self.support_refresh = true;
self.version = hbb_common::get_version_number(&pi.version);
}
let serde = PeerInfoSerde {

View File

@ -144,7 +144,7 @@ class Header: Reactor.Component {
<div .separator />
{keyboard_enabled ? <li #lock-screen>{translate('Insert Lock')}</li> : ""}
{keyboard_enabled && pi.platform == "Windows" ? <li #block-input>{translate("Block user input")}</li> : ""}
{handler.support_refresh() ? <li #refresh>{translate('Refresh')}</li> : ""}
<li #refresh>{translate('Refresh')}</li>
</menu>
</popup>;
}

View File

@ -197,7 +197,6 @@ impl sciter::EventHandler for Handler {
fn save_image_quality(String);
fn save_custom_image_quality(i32, i32);
fn refresh_video();
fn support_refresh();
fn get_toggle_option(String);
fn toggle_option(String);
fn get_remember();
@ -403,10 +402,6 @@ impl Handler {
self.send(Data::Message(LoginConfigHandler::refresh()));
}
fn support_refresh(&self) -> bool {
self.lc.read().unwrap().support_refresh
}
fn save_custom_image_quality(&mut self, bitrate: i32, quantizer: i32) {
let msg = self
.lc