fix(kiosk): resolve is_creating_mini() at window setup
The P0 kiosk block read a creating_mini local that only exists inside select_slint_backend(); at the main-window setup site it is out of scope. Call crate::miniplayer::is_creating_mini() directly (same source the backend hook uses) so the qbz bin compiles. Confirmed: the kiosk shell builds (release) and launches. cc
This commit is contained in:
1 file changed
+1
-1
@@ -6693,7 +6693,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// boots the main window fullscreen and forces reduce-motion; the kiosk image
|
||||
// additionally pins QBZ_RENDERER=gl + the XS ui_scale preset via env. Never
|
||||
// applies to the miniplayer window.
|
||||
let kiosk_profile = !creating_mini && kiosk_profile_active();
|
||||
let kiosk_profile = !crate::miniplayer::is_creating_mini() && kiosk_profile_active();
|
||||
// Same tiers: every animation frame is a full-window femtovg repaint on a
|
||||
// weak GPU — step loading indicators / eq bars at ~8fps (coarse clock in
|
||||
// AppShell) instead of display rate. Kiosk forces it on regardless of tier.
|
||||
|
||||
Reference in new issue
Block a user