mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-10 18:06:01 +02:00
cap display name
This commit is contained in:
parent
abde556695
commit
f0c5580f57
1 changed files with 11 additions and 0 deletions
|
@ -2317,6 +2317,17 @@ impl LoginConfigHandler {
|
|||
if display_name.is_empty() {
|
||||
display_name = crate::username();
|
||||
}
|
||||
let display_name = display_name
|
||||
.chars()
|
||||
.enumerate()
|
||||
.map(|(i, c)| {
|
||||
if i == 0 {
|
||||
c.to_uppercase().to_string()
|
||||
} else {
|
||||
c.to_string()
|
||||
}
|
||||
})
|
||||
.collect::<String>();
|
||||
#[cfg(not(target_os = "android"))]
|
||||
let my_platform = whoami::platform().to_string();
|
||||
#[cfg(target_os = "android")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue