mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-26 13:48:03 +00:00
Merge pull request #11007 from zeltermann/dbus-obey-utf8
Use `toUtf8()` for string passed to DBus
This commit is contained in:
commit
005f0eb083
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
|
||||||
// the user through their desktop environment.
|
// the user through their desktop environment.
|
||||||
//: TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the
|
//: TRANSLATORS: This string is shown to the user to explain why yuzu needs to prevent the
|
||||||
//: computer from sleeping
|
//: computer from sleeping
|
||||||
QByteArray wakelock_reason = tr("Running a game").toLatin1();
|
QByteArray wakelock_reason = tr("Running a game").toUtf8();
|
||||||
SDL_SetHint(SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME, wakelock_reason.data());
|
SDL_SetHint(SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME, wakelock_reason.data());
|
||||||
|
|
||||||
// SDL disables the screen saver by default, and setting the hint
|
// SDL disables the screen saver by default, and setting the hint
|
||||||
|
|
Loading…
Reference in a new issue