mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix: custom client, options, option2bool() (#8302)
* fix: custom client, options, option2bool() Signed-off-by: fufesou <linlong1266@gmail.com> * format Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1422,6 +1422,9 @@ String translate(String name) {
|
||||
return platformFFI.translate(name, localeName);
|
||||
}
|
||||
|
||||
// This function must be kept the same as the one in rust and sciter code.
|
||||
// rust: libs/hbb_common/src/config.rs -> option2bool()
|
||||
// sciter: Does not have the function, but it should be kept the same.
|
||||
bool option2bool(String option, String value) {
|
||||
bool res;
|
||||
if (option.startsWith("enable-")) {
|
||||
|
||||
Reference in New Issue
Block a user