Fix specifying user

This commit is contained in:
XorTroll 2019-11-16 00:57:27 +01:00
parent 6d7b4913e7
commit 71b7d03b41

View file

@ -40,6 +40,8 @@ void CommonSleepHandle()
am::QDaemonStatus CreateStatus()
{
am::QDaemonStatus status = {};
memcpy(&status.selected_user, &selected_uid, sizeof(selected_uid));
cfg::TitleType tmptype = cfg::TitleType::Invalid;
if(am::ApplicationIsActive())
{
@ -50,8 +52,6 @@ am::QDaemonStatus CreateStatus()
if(tmptype == cfg::TitleType::Installed) status.app_id = am::ApplicationGetId();
else if(tmptype == cfg::TitleType::Homebrew) memcpy(&status.input, &hbapplaunch_copy, sizeof(hbapplaunch_copy));
status.selected_user = selected_uid;
return status;
}