mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-26 23:58:48 +00:00
Floating windows carry the running channel's app id
This commit is contained in:
@@ -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}"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user