mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
config: rename display to device
Because we toggle some ioctl settings based on this field, change the name to better capture that we're selecting which device we want to load settings for, not just the display module to load. This creates room for future per-device settings without needing more config file fields.
This commit is contained in:
committed by
Will Greenberg
parent
841bc7b015
commit
e239653a44
@@ -11,7 +11,7 @@ pub struct Config {
|
||||
pub qmdl_store_path: String,
|
||||
pub port: u16,
|
||||
pub debug_mode: bool,
|
||||
pub display: Display,
|
||||
pub device: Device,
|
||||
pub ui_level: u8,
|
||||
pub colorblind_mode: bool,
|
||||
pub key_input_mode: u8,
|
||||
@@ -20,7 +20,7 @@ pub struct Config {
|
||||
|
||||
#[derive(PartialEq, Debug, Clone, Deserialize, Serialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum Display {
|
||||
pub enum Device {
|
||||
Orbic,
|
||||
Tplink,
|
||||
Tmobile,
|
||||
@@ -33,7 +33,7 @@ impl Default for Config {
|
||||
qmdl_store_path: "/data/rayhunter/qmdl".to_string(),
|
||||
port: 8080,
|
||||
debug_mode: false,
|
||||
display: Display::Orbic,
|
||||
device: Device::Orbic,
|
||||
ui_level: 1,
|
||||
colorblind_mode: false,
|
||||
key_input_mode: 0,
|
||||
|
||||
Reference in New Issue
Block a user