new mac service and local config

This commit is contained in:
rustdesk committed 2022-04-26 11:19:45 +08:00
1 parent 05ac26e5fe
commit 3566b0ee7a
15 files changed
+308 -419

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
use hbb_common::{config::Config, log};
use hbb_common::{config::LocalConfig, log};
use std::ops::Deref;
mod cn;
@@ -19,7 +19,7 @@ pub fn translate(name: String) -> String {
}
pub fn translate_locale(name: String, locale: &str) -> String {
let mut lang = Config::get_option("lang");
let mut lang = LocalConfig::get_option("lang");
if lang.is_empty() {
lang = locale
.split("-")