mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
@@ -987,7 +987,7 @@ fn try_get_displays() -> ResultType<Vec<Display>> {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[cfg(windows)]
|
||||
#[cfg(all(windows, feature = "virtual_display_driver"))]
|
||||
fn no_displays(displays: &Vec<Display>) -> bool {
|
||||
let display_len = displays.len();
|
||||
if display_len == 0 {
|
||||
|
||||
@@ -5,6 +5,15 @@ function translate_text(text) {
|
||||
fds[i] = translate(fds[i]);
|
||||
}
|
||||
text = fds.join(': ');
|
||||
} else {
|
||||
var fds = text.split(' ');
|
||||
if (fds.length > 1 && fds[0].slice(-4) === '_tip') {
|
||||
fds[0] = translate(fds[0]);
|
||||
var rest = text.substring(fds[0].length + 1);
|
||||
text = fds[0] + ' ' + translate(rest);
|
||||
} else {
|
||||
text = translate(text);
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user