add setting page

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-13 12:43:35 +08:00
Unverified
parent f812adedff
commit 5887334c2e
8 changed files with 1066 additions and 460 deletions

View File

@@ -23,9 +23,9 @@ use crate::ui_interface;
use crate::ui_interface::{change_id, check_connect_status, is_ok_change_id};
use crate::ui_interface::{
discover, forget_password, get_api_server, get_app_name, get_async_job_status,
get_connect_status, get_fav, get_id, get_lan_peers, get_license, get_local_option, get_option,
get_options, get_peer, get_peer_option, get_socks, get_sound_inputs, get_uuid, get_version,
has_rendezvous_service, post_request, set_local_option, set_option, set_options,
get_connect_status, get_fav, get_id, get_lan_peers, get_langs, get_license, get_local_option,
get_option, get_options, get_peer, get_peer_option, get_socks, get_sound_inputs, get_uuid,
get_version, has_rendezvous_service, post_request, set_local_option, set_option, set_options,
set_peer_option, set_permanent_password, set_socks, store_fav, test_if_valid_server,
update_temporary_password, using_public_server,
};
@@ -614,7 +614,7 @@ pub fn main_get_home_dir() -> String {
}
pub fn main_get_langs() -> String {
crate::lang::LANGS.to_string()
get_langs()
}
pub fn main_get_temporary_password() -> String {

View File

@@ -24,17 +24,18 @@ use crate::ipc;
use crate::ui_interface::{
check_mouse_time, closing, create_shortcut, current_is_wayland, fix_login_wayland,
forget_password, get_api_server, get_async_job_status, get_connect_status, get_error, get_fav,
get_icon, get_lan_peers, get_license, get_local_option, get_mouse_time, get_new_version,
get_option, get_options, get_peer, get_peer_option, get_recent_sessions, get_remote_id,
get_size, get_socks, get_software_ext, get_software_store_path, get_software_update_url,
get_uuid, get_version, goto_install, has_rendezvous_service, install_me, install_path,
is_can_screen_recording, is_installed, is_installed_daemon, is_installed_lower_version,
is_login_wayland, is_ok_change_id, is_process_trusted, is_rdp_service_open, is_share_rdp,
is_xfce, modify_default_login, new_remote, open_url, peer_has_password, permanent_password,
post_request, recent_sessions_updated, remove_peer, run_without_install, set_local_option,
set_option, set_options, set_peer_option, set_permanent_password, set_remote_id, set_share_rdp,
set_socks, show_run_without_install, store_fav, t, temporary_password, test_if_valid_server,
update_me, update_temporary_password, using_public_server,
get_icon, get_lan_peers, get_langs, get_license, get_local_option, get_mouse_time,
get_new_version, get_option, get_options, get_peer, get_peer_option, get_recent_sessions,
get_remote_id, get_size, get_socks, get_software_ext, get_software_store_path,
get_software_update_url, get_uuid, get_version, goto_install, has_rendezvous_service,
install_me, install_path, is_can_screen_recording, is_installed, is_installed_daemon,
is_installed_lower_version, is_login_wayland, is_ok_change_id, is_process_trusted,
is_rdp_service_open, is_share_rdp, is_xfce, modify_default_login, new_remote, open_url,
peer_has_password, permanent_password, post_request, recent_sessions_updated, remove_peer,
run_without_install, set_local_option, set_option, set_options, set_peer_option,
set_permanent_password, set_remote_id, set_share_rdp, set_socks, show_run_without_install,
store_fav, t, temporary_password, test_if_valid_server, update_me, update_temporary_password,
using_public_server,
};
mod cm;
@@ -547,7 +548,7 @@ impl UI {
}
fn get_langs(&self) -> String {
crate::lang::LANGS.to_string()
get_langs()
}
}

View File

@@ -654,6 +654,10 @@ pub fn t(name: String) -> String {
crate::client::translate(name)
}
pub fn get_langs() -> String {
crate::lang::LANGS.to_string()
}
pub fn is_xfce() -> bool {
crate::platform::is_xfce()
}