diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-02 16:27:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-02 16:27:43 +0100 |
commit | 011fa7c9c4136072b3e9f972f24d545a1bb488c8 (patch) | |
tree | 5a84abbbf7c5886f0a7c2c17a8de2ba032652eb6 | |
parent | 1d61150f8fdda0f02e38e1adebcdd40c6de5d439 (diff) | |
parent | e7779dc62dd5f28b1833323fa8340e54c0b5fc0a (diff) |
Merge pull request #72603 from Calinou/os-alert-linuxbsd-use-warning-icon
Use a "warning" icon in `OS.alert()` on Linux/*BSD
-rw-r--r-- | platform/linuxbsd/os_linuxbsd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp index 75c23655f2..41d1f1d050 100644 --- a/platform/linuxbsd/os_linuxbsd.cpp +++ b/platform/linuxbsd/os_linuxbsd.cpp @@ -81,7 +81,7 @@ void OS_LinuxBSD::alert(const String &p_alert, const String &p_title) { List<String> args; if (program.ends_with("zenity")) { - args.push_back("--error"); + args.push_back("--warning"); args.push_back("--width"); args.push_back("500"); args.push_back("--title"); @@ -91,7 +91,9 @@ void OS_LinuxBSD::alert(const String &p_alert, const String &p_title) { } if (program.ends_with("kdialog")) { - args.push_back("--error"); + // `--sorry` uses the same icon as `--warning` in Zenity. + // As of KDialog 22.12.1, its `--warning` options are only available for yes/no questions. + args.push_back("--sorry"); args.push_back(p_alert); args.push_back("--title"); args.push_back(p_title); |