mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 00:36:25 +00:00
Avoided costly roundtrip through strings.
This commit is contained in:
parent
70fd2e599e
commit
e275bc34a5
@ -1072,7 +1072,7 @@ static DBusConnection *get_dbus_connection()
|
||||
if (!initted)
|
||||
{
|
||||
initted = true;
|
||||
if (utils::string_bool(preferences::get("disable_notifications"))) {
|
||||
if (preferences::get("disable_notifications", false)) {
|
||||
return NULL;
|
||||
}
|
||||
if (getenv("KDE_SESSION_VERSION")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user