mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix some minors of custom client
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user