mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
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:
@@ -5,7 +5,9 @@ pub(crate) use tray::{
|
|||||||
toggle_tray_icon,
|
toggle_tray_icon,
|
||||||
};
|
};
|
||||||
// Internal helpers consumed elsewhere in the shell crate:
|
// 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!
|
// Sync commands now live in `psysonic_syncfs::sync::*` — invoke_handler!
|
||||||
// in lib.rs registers them with the full path so Tauri's `__cmd__*` magic
|
// in lib.rs registers them with the full path so Tauri's `__cmd__*` magic
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ use std::sync::{Mutex, OnceLock};
|
|||||||
|
|
||||||
use tauri::Manager;
|
use tauri::Manager;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
use crate::lib_commands::sync::is_tiling_wm;
|
use crate::lib_commands::sync::is_tiling_wm;
|
||||||
|
|
||||||
// ── Mini Player window ──────────────────────────────────────────────────────
|
// ── Mini Player window ──────────────────────────────────────────────────────
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
mod mini;
|
mod mini;
|
||||||
|
|
||||||
pub(crate) use mini::{
|
pub(crate) use mini::{
|
||||||
close_mini_player, open_mini_player, pause_rendering, persist_mini_pos_throttled,
|
build_mini_player_window, close_mini_player, open_mini_player, pause_rendering,
|
||||||
preload_mini_player, resize_mini_player, resume_rendering, set_mini_player_always_on_top,
|
persist_mini_pos_throttled, preload_mini_player, resize_mini_player, resume_rendering,
|
||||||
show_main_window, PAUSE_RENDERING_JS, RESUME_RENDERING_JS,
|
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.
|
// Bandsintown moved to psysonic-integration; lib.rs uses the full path.
|
||||||
|
|||||||
Reference in New Issue
Block a user