Skip to content

Fix Toggle Night Color global shortcut (invalid i18n use in object name)

As discussed in the relevant bug report, the Toggle Night Color global shortcut stopped working for me after the translation of its caption changed between releases. I've traced the issue back to i18n being used in its setObjectName, which caused the translated text to be used as the identifier, in turn making it prone to weird bugs e.g. when changing system locale or if the localized string changed since the shortcut was set.

One caveat is that, as mentioned by David Edmundson, this will break the shortcut for anyone with a non-English locale who had it set before.

BUG: 428024

Merge request reports

Loading