Skip to content

Commit

Permalink
fix window specific application id
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Jan 5, 2024
1 parent 1a6f027 commit e7cf442
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,20 @@ fn main() -> Result<(), Box<dyn Error>> {
setup_panic_hook();

let mut settings = Settings::with_flags((config, log_level));
settings.id = Some("liana-gui".to_string());
settings.window.icon = Some(image::liana_app_icon());
settings.default_text_size = text::P1_SIZE.into();
settings.default_font = liana_ui::font::REGULAR;
settings.exit_on_close_request = false;

settings.id = Some("Liana".to_string());

#[cfg(target_os = "linux")]
{
settings.window.platform_specific = iced::window::PlatformSpecific {
application_id: "Liana".to_string(),
};
}

if let Err(e) = GUI::run(settings) {
return Err(format!("Failed to launch UI: {}", e).into());
};
Expand Down

0 comments on commit e7cf442

Please sign in to comment.