Gate setting application ID by platform
This commit is contained in:
parent
5dc65515fc
commit
91c4985d42
1 changed files with 8 additions and 4 deletions
|
|
@ -59,12 +59,16 @@ impl<M: 'static> Dialog<M> {
|
||||||
settings.decorations = false;
|
settings.decorations = false;
|
||||||
settings.exit_on_close_request = false;
|
settings.exit_on_close_request = false;
|
||||||
settings.transparent = true;
|
settings.transparent = true;
|
||||||
settings.platform_specific.application_id = App::APP_ID.to_string();
|
|
||||||
|
//TODO: allow resize!
|
||||||
|
settings.size = Size::new(800.0, 600.0);
|
||||||
|
settings.resizable = false;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
//TODO: allow resize!
|
settings.platform_specific.application_id = App::APP_ID.to_string();
|
||||||
settings.size = Size::new(800.0, 600.0);
|
|
||||||
settings.resizable = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let (window_id, window_command) = window::spawn(settings);
|
let (window_id, window_command) = window::spawn(settings);
|
||||||
|
|
||||||
let core = Core::default();
|
let core = Core::default();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue