-client now compiles with --no-default-features again + small bugfix for syncplayer

This commit is contained in:
Mark
2023-11-05 10:45:19 +01:00
parent ec475aa1af
commit a151aa8712
2 changed files with 20 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ use std::{
};
use clap::{Parser, Subcommand};
#[cfg(feature = "speedy2d")]
use gui::GuiEvent;
use musicdb_lib::{
data::{
@@ -40,6 +41,7 @@ mod gui_settings;
mod gui_text;
#[cfg(feature = "speedy2d")]
mod gui_wrappers;
#[cfg(feature = "speedy2d")]
mod textcfg;
#[derive(Parser, Debug)]
@@ -91,7 +93,7 @@ fn main() {
thread::spawn(move || {
let mut player =
if matches!(mode, Mode::SyncplayerLocal { .. } | Mode::SyncplayerNetwork) {
Some(Player::new().unwrap())
Some(Player::new().unwrap().without_sending_commands())
} else {
None
};