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:
@@ -83,7 +83,10 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
#[cfg(feature = "flutter")]
|
||||
{
|
||||
let (k, v) = ("LIBGL_ALWAYS_SOFTWARE", "1");
|
||||
if !config::Config::get_option("allow-always-software-render").is_empty() {
|
||||
if config::option2bool(
|
||||
"allow-always-software-render",
|
||||
&config::Config::get_option("allow-always-software-render"),
|
||||
) {
|
||||
std::env::set_var(k, v);
|
||||
} else {
|
||||
std::env::remove_var(k);
|
||||
|
||||
Reference in New Issue
Block a user