mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-17 13:28:10 -07:00
replacing numbered options in config with rust enum implementation, unique commit to make easier to debug or rollback
This commit is contained in:
committed by
Will Greenberg
parent
0b91a6e5d3
commit
fee082cde4
@@ -9,7 +9,7 @@ use tokio_util::task::TaskTracker;
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::config;
|
||||
use crate::config::{self, UiLevel};
|
||||
use crate::display::DisplayState;
|
||||
|
||||
macro_rules! led {
|
||||
@@ -31,7 +31,7 @@ pub fn update_ui(
|
||||
mut ui_update_rx: mpsc::Receiver<DisplayState>,
|
||||
) {
|
||||
let mut invisible: bool = false;
|
||||
if config.ui_level == 0 {
|
||||
if config.ui_level == UiLevel::Invisible {
|
||||
info!("Invisible mode, not spawning UI.");
|
||||
invisible = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user