From eca0df098abebbe4775eb30ac4cf1b9caaedcfce Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 28 Sep 2025 06:37:16 +0800 Subject: [PATCH] refact: rename option before inuse Signed-off-by: fufesou --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 1c5274044..282034287 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2510,8 +2510,8 @@ pub mod keys { pub const OPTION_RELAY_SERVER: &str = "relay-server"; pub const OPTION_SHOW_VIRTUAL_MOUSE: &str = "show-virtual-mouse"; // joystick is the virtual mouse. - // So `OPTION_SHOW_VIRTUAL_MOUSE` should also be set if `OPTION_SHOW_JOYSTICK` is set. - pub const OPTION_SHOW_JOYSTICK: &str = "show-joystick"; + // So `OPTION_SHOW_VIRTUAL_MOUSE` should also be set if `OPTION_SHOW_VIRTUAL_JOYSTICK` is set. + pub const OPTION_SHOW_VIRTUAL_JOYSTICK: &str = "show-virtual-joystick"; // built-in options pub const OPTION_DISPLAY_NAME: &str = "display-name"; @@ -2645,7 +2645,7 @@ pub mod keys { OPTION_ENABLE_IPV6_PUNCH, OPTION_TOUCH_MODE, OPTION_SHOW_VIRTUAL_MOUSE, - OPTION_SHOW_JOYSTICK, + OPTION_SHOW_VIRTUAL_JOYSTICK, ]; // DEFAULT_SETTINGS, OVERWRITE_SETTINGS pub const KEYS_SETTINGS: &[&str] = &[