mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-12 12:01:29 +03:00
This commit is contained in:
@@ -2110,6 +2110,13 @@ impl LoginConfigHandler {
|
|||||||
(my_id, self.id.clone())
|
(my_id, self.id.clone())
|
||||||
};
|
};
|
||||||
let mut display_name = get_buildin_option(config::keys::OPTION_DISPLAY_NAME);
|
let mut display_name = get_buildin_option(config::keys::OPTION_DISPLAY_NAME);
|
||||||
|
if display_name.is_empty() {
|
||||||
|
display_name = serde_json::from_str::<HashMap<String, String>>(
|
||||||
|
&LocalConfig::get_option("user_info"),
|
||||||
|
)
|
||||||
|
.map(|mut x| x.remove("name").unwrap_or_default())
|
||||||
|
.unwrap_or_default();
|
||||||
|
}
|
||||||
if display_name.is_empty() {
|
if display_name.is_empty() {
|
||||||
display_name = crate::username();
|
display_name = crate::username();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user