mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
@@ -2069,10 +2069,7 @@ fn default_window_label() -> String {
|
||||
}
|
||||
|
||||
fn default_width() -> Option<f64> {
|
||||
// the config is generated by a proc macro, so we have to check CARGO_CFG_TARGET_OS since proc macros run on the host target
|
||||
if cfg!(any(target_os = "ios", target_os = "android"))
|
||||
|| std::env::var("CARGO_CFG_TARGET_OS").map_or(false, |os| os == "ios" || os == "android")
|
||||
{
|
||||
if cfg!(any(target_os = "ios", target_os = "android")) {
|
||||
None
|
||||
} else {
|
||||
Some(800.)
|
||||
@@ -2080,10 +2077,7 @@ fn default_width() -> Option<f64> {
|
||||
}
|
||||
|
||||
fn default_height() -> Option<f64> {
|
||||
// the config is generated by a proc macro, so we have to check CARGO_CFG_TARGET_OS since proc macros run on the host target
|
||||
if cfg!(any(target_os = "ios", target_os = "android"))
|
||||
|| std::env::var("CARGO_CFG_TARGET_OS").map_or(false, |os| os == "ios" || os == "android")
|
||||
{
|
||||
if cfg!(any(target_os = "ios", target_os = "android")) {
|
||||
None
|
||||
} else {
|
||||
Some(600.)
|
||||
|
||||
Reference in New Issue
Block a user