Floating windows carry the running channel's app id

This commit is contained in:
aiongg
2026-11-25 20:10:33 +00:00
parent 5bdbd2cf89
commit fb5a5fd910
+1 -4
View File
@@ -31,9 +31,6 @@ use crate::EffectcraftApp;
#[cfg(not(target_arch = "wasm32"))]
pub use craft_ui::shell::embed::before_ui;
/// The id every OS window of the app carries, as the desktop entry and the update app name it.
const APP_ID: &str = "ai.storyteller.effectcraft";
/// The scripts of the interface languages, for the font stack.
static SCRIPTS: I18nScripts = I18nScripts;
@@ -44,7 +41,7 @@ fn ui_fonts() -> UiFonts<'static> {
}
fn install_with(ctx: &egui::Context, shell: ShellInfo, windows: Arc<dyn WindowSystem>) -> Result<(), String> {
let spec = craft_ui::InstallSpec::new(shell, windows).app_id(APP_ID);
let spec = craft_ui::InstallSpec::new(shell, windows).app_id(crate::channel::app_id());
embed::install(ctx, spec, &ui_fonts()).map(drop).map_err(|error| format!("the UI runtime could not be installed: {error}"))
}