fix(refactor): restore Windows build on backend-pilot

- Re-export `build_mini_player_window` from `lib_commands::ui` so the
  Windows-only pre-create call in `lib.rs` resolves through the
  `use lib_commands::*` glob (was lost during the M5 split).
- Gate the `is_tiling_wm` import in `ui::mini` and its re-export in
  `lib_commands::sync` behind `cfg(target_os = "linux")`, the only
  platform that actually consults it.
This commit is contained in:
Psychotoxical
2026-05-09 17:38:40 +02:00
parent eff7bd036e
commit 37c19237f3
3 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ pub(crate) use tray::{
toggle_tray_icon,
};
// Internal helpers consumed elsewhere in the shell crate:
pub(crate) use tray::{is_tiling_wm, stop_audio_engine, try_build_tray_icon};
pub(crate) use tray::{stop_audio_engine, try_build_tray_icon};
#[cfg(target_os = "linux")]
pub(crate) use tray::is_tiling_wm;
// Sync commands now live in `psysonic_syncfs::sync::*` — invoke_handler!
// in lib.rs registers them with the full path so Tauri's `__cmd__*` magic
+1
View File
@@ -2,6 +2,7 @@ use std::sync::{Mutex, OnceLock};
use tauri::Manager;
#[cfg(target_os = "linux")]
use crate::lib_commands::sync::is_tiling_wm;
// ── Mini Player window ──────────────────────────────────────────────────────
+3 -3
View File
@@ -1,8 +1,8 @@
mod mini;
pub(crate) use mini::{
close_mini_player, open_mini_player, pause_rendering, persist_mini_pos_throttled,
preload_mini_player, resize_mini_player, resume_rendering, set_mini_player_always_on_top,
show_main_window, PAUSE_RENDERING_JS, RESUME_RENDERING_JS,
build_mini_player_window, close_mini_player, open_mini_player, pause_rendering,
persist_mini_pos_throttled, preload_mini_player, resize_mini_player, resume_rendering,
set_mini_player_always_on_top, show_main_window, PAUSE_RENDERING_JS, RESUME_RENDERING_JS,
};
// Bandsintown moved to psysonic-integration; lib.rs uses the full path.