Prepare v0.0.2 pre-release
This commit is contained in:
+4
-6
@@ -1,4 +1,5 @@
|
||||
mod config;
|
||||
mod eq_discovery;
|
||||
mod events;
|
||||
mod kokoro;
|
||||
mod speakers;
|
||||
@@ -76,15 +77,12 @@ async fn main() -> Result<()> {
|
||||
);
|
||||
|
||||
let tailer_generation = Arc::new(AtomicUsize::new(0));
|
||||
if let Some(path) = config.log_path.clone() {
|
||||
if config.log_path.as_ref().is_some_and(|path| path.is_file()) {
|
||||
let path = config.log_path.clone().expect("log path was checked");
|
||||
spawn_log_tailer(path, worker_sender.clone(), tailer_generation.clone(), 0);
|
||||
}
|
||||
|
||||
let mut app = App::new(config, speakers);
|
||||
if app.config.log_path.is_none() {
|
||||
app.activity
|
||||
.push_front("First run: press [s] and configure your EverQuest log path.".into());
|
||||
}
|
||||
let channels = RuntimeChannels {
|
||||
worker_receiver,
|
||||
worker_sender,
|
||||
@@ -128,7 +126,7 @@ async fn run_loop(
|
||||
.audio_control
|
||||
.send(AudioCommand::SetVolume(app.config.volume));
|
||||
let generation = channels.tailer_generation.fetch_add(1, Ordering::Relaxed) + 1;
|
||||
if let Some(path) = app.config.log_path.clone() {
|
||||
if let Some(path) = app.config.log_path.clone().filter(|path| path.is_file()) {
|
||||
spawn_log_tailer(
|
||||
path,
|
||||
channels.worker_sender.clone(),
|
||||
|
||||
Reference in New Issue
Block a user