fix some minors of custom client

This commit is contained in:
rustdesk
2024-03-15 00:26:53 +08:00
parent 228582296c
commit a9b0bc0409
8 changed files with 100 additions and 99 deletions

View File

@@ -214,5 +214,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("enable-2fa-desc", "Please set up your authenticator now. You can use an authenticator app such as Authy, Microsoft or Google Authenticator on your phone or desktop.\n\nScan the QR code with your app and enter the code that your app shows to enable two-factor authentication."),
("wrong-2fa-code", "Can't verify the code. Check that code and local time settings are correct"),
("enter-2fa-title", "Two-factor authentication"),
("powered_by_me", "Powered by RustDesk"),
].iter().cloned().collect();
}

View File

@@ -207,7 +207,7 @@ async fn start_query_session_count(sender: std::sync::mpsc::Sender<Data>) {
fn load_icon_from_asset() -> Option<image::DynamicImage> {
#[cfg(windows)]
if let Ok(cmd) = std::env::current_exe() {
let path = r".\data\flutter_assets\assets\icon.ico";
let path = r".\data\flutter_assets\assets\icon.png";
if let Some(path) = cmd.parent().map(|x| x.join(path)) {
if path.exists() {
if let Ok(image) = image::open(path) {