mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Disabled tinyfiledialogs when running headless.
This commit is contained in:
parent
e1841fbd36
commit
f05577cb29
6 changed files with 21 additions and 2 deletions
|
@ -379,7 +379,9 @@ impl Window {
|
|||
|
||||
#[cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))]
|
||||
fn display_alert_dialog(message: &str) {
|
||||
tinyfiledialogs::message_box_ok("Alert!", message, MessageBoxIcon::Warning);
|
||||
if !opts::get().headless {
|
||||
tinyfiledialogs::message_box_ok("Alert!", message, MessageBoxIcon::Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue