summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-11 16:18:20 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-11 16:18:20 +0200
commitb6ad4b193f02c9e1afb8682034f7481d05e47222 (patch)
tree93c2bf998e0a706ac402fd6adda1a92ca50094f8 /editor
parenta7aa8356b9288fb6de1cef2980465703c63102ea (diff)
downloadredot-engine-b6ad4b193f02c9e1afb8682034f7481d05e47222.tar.gz
System info: Remove empty parentheses when video adapter driver name is unknown
Seems to be the case at least for me on Fedora, and in various issues I see from other Linux users.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 94bd590fc1..d5e1242406 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4928,7 +4928,7 @@ String EditorNode::_get_system_info() const {
const String &vad_version = video_adapter_driver_info[1]; // Version could be potentially empty on Linux/BSD.
if (!vad_version.is_empty()) {
graphics += vformat(" (%s; %s)", vad_name, vad_version);
- } else {
+ } else if (!vad_name.is_empty()) {
graphics += vformat(" (%s)", vad_name);
}
}