GUI: only set QT_MESSAGE_PATTERN if it isn't set

This commit is contained in:
Moritz Bunkus 2022-08-01 23:54:39 +02:00
parent 9a60f4be24
commit 51ae8b4308
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -46,7 +46,7 @@ enableOrDisableHighDPIScaling() {
void
initiateSettings() {
#if defined(SYS_WINDOWS)
if (mtx::sys::get_environment_variable("").empty())
if (mtx::sys::get_environment_variable("QT_MESSAGE_PATTERN").empty())
mtx::sys::set_environment_variable("QT_MESSAGE_PATTERN", "[%{type}] %{appname} (%{file}:%{line}) - %{message}");
#endif